How are you going from Page1 to Page2, is there a form submitted?
Yes there is a form in the first page. In the submit button .Click, I programmed it to do a Response.Redirect to default2.aspx.
then you must redirect to default2.aspx?email=xxxx, etc., because your Redirect is causing the form NOT to be submitted.
(or change the form submit to regular html submit button, and not a server control)
Thanks! It works! Here's my revised redirect string:
Response.Redirect("default2.aspx?Email=" & email.Text)
I just thought that there was a new way of passing parameters in asp.net ("postback"?).
Is there a Webform element equivalent to the traditional hidden form field? I want to store the values from the first page. Default2.aspx is also a form that will submit values from the first page (like Step one, Step two style online forms).
use a textbox control
set Visible=False
Why are you passing values to a second page.. that defeats the whole point of viewstate. what you are actually doing is submitting the form, thus creating a new request to the server... and then you are redirecting, which is also another request to the server. Why? Why not just use the same page to do the processing on the form's elements.
Thanks for the replies.
I need a second page because the creative on the first page is a simple "zipcode" only promotion. The creative on the first page is different than on the second page. When a user enters a zipcode, an affiliate gets paid.
The second page is a also a form that when filled out by the user, the affiliate also gets paid but at a much lower rate because there are more fields to fill out. The creative on this page is different in an attempt to lure the user to fill it out.
Therefore, since these are 2 different looking pages, it's more practical to create 2 pages especially when working alongside a web designer.
0 comments:
Post a Comment