A
antonyliu2002
By "chain postback", I mean postback to one page and then another and
another.
For example, I have page1.aspx, page2.aspx, page3.aspx, page4.aspx in
a survey application.
1. Users can only submit the survey on page4.aspx.
2. Users can *randomly jump* among these 4 pages through the
navigation menu at the top of each page.
3. User input from all 4 pages must be obtained and submitted.
I have done this project successfully using Session. That is, I put
user input into the Session object each time the user jumps from one
page to another. When one page has been done, a session key-value pair
is created, and later on checked when the user submits, if the expected
pair does not exist in Session, the user is forced back to that page.
I've read and tried a little bit about cross page postback of ASP.NET
2.0, using things like PostBackUrl, PreviousPage VirtualPath. But it
looks like if we want the flexibility as described by 1 through 3
above, ASP.NET 2.0 does not really make developers' life easier. What
do you guys think? Have I just missed some really cool trick of .NET
2.0 that handles this scenario?
another.
For example, I have page1.aspx, page2.aspx, page3.aspx, page4.aspx in
a survey application.
1. Users can only submit the survey on page4.aspx.
2. Users can *randomly jump* among these 4 pages through the
navigation menu at the top of each page.
3. User input from all 4 pages must be obtained and submitted.
I have done this project successfully using Session. That is, I put
user input into the Session object each time the user jumps from one
page to another. When one page has been done, a session key-value pair
is created, and later on checked when the user submits, if the expected
pair does not exist in Session, the user is forced back to that page.
I've read and tried a little bit about cross page postback of ASP.NET
2.0, using things like PostBackUrl, PreviousPage VirtualPath. But it
looks like if we want the flexibility as described by 1 through 3
above, ASP.NET 2.0 does not really make developers' life easier. What
do you guys think? Have I just missed some really cool trick of .NET
2.0 that handles this scenario?