Server.Transfer vs. Session questions
-
I am writing an Asp.net 2.0 web app. In the app I have the user walk through a series of steps (1-4). I need to carry the variable frmo the controls from each form all the way to the last form. Using "Server.Transfer("URL", true)" I understand is less overhead on the server but on each page I have to bind the variables from the previous page to a new control then hide it on the form on every following page. Is there an easier way to carry the variables from page 1 to page 4 using server.transfer or is it only Sessions that can do that. Writing to a file is out of the question. Thanks, Taen Karth
-
I am writing an Asp.net 2.0 web app. In the app I have the user walk through a series of steps (1-4). I need to carry the variable frmo the controls from each form all the way to the last form. Using "Server.Transfer("URL", true)" I understand is less overhead on the server but on each page I have to bind the variables from the previous page to a new control then hide it on the form on every following page. Is there an easier way to carry the variables from page 1 to page 4 using server.transfer or is it only Sessions that can do that. Writing to a file is out of the question. Thanks, Taen Karth
- Use the Querystring 2) Sounds like you could use the wizard control 3) ASP.Net 2.0 buttons will allow where the post back goes to. In 1.1 it's always the same page but with 2.0 you can pick a page. That means your data will be in the form object on the new page. There is a property in the button object that controls this. E=mc2 -> BOOM
-
- Use the Querystring 2) Sounds like you could use the wizard control 3) ASP.Net 2.0 buttons will allow where the post back goes to. In 1.1 it's always the same page but with 2.0 you can pick a page. That means your data will be in the form object on the new page. There is a property in the button object that controls this. E=mc2 -> BOOM
1. Querystring inserts the parameters in address bar from what i understand. Not an option for this client as they have expressed there thoughts on that particular case. 2. I am not familiar with the wizard control but it looks very useful....Thanks for pointing it out to me! 3. I am not quite sure I follow the PostBackUrl. So if I have 4 aspx form pages on page 1 I can use PostBackUrl to page 4. then I can postbackurl from page 2 to four and three to fuor as well and when I reach page four they will all be accessible? Thanks, Taen Karth
-
1. Querystring inserts the parameters in address bar from what i understand. Not an option for this client as they have expressed there thoughts on that particular case. 2. I am not familiar with the wizard control but it looks very useful....Thanks for pointing it out to me! 3. I am not quite sure I follow the PostBackUrl. So if I have 4 aspx form pages on page 1 I can use PostBackUrl to page 4. then I can postbackurl from page 2 to four and three to fuor as well and when I reach page four they will all be accessible? Thanks, Taen Karth
You pick the page you want to post back to. Works like the old action paramater of the form tag. E=mc2 -> BOOM