Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 server.transfer question

Author  Topic 

binici
Starting Member

5 Posts

Posted - 2006-10-18 : 12:41:01
Hello all:

I am using server.transfer after adding the context items I want to the second page of an application. Now does server.transfer only work in the Page_Load sub? I want to be able to collect the item's from the first page and insert them into a sql query after the users finishes the second form on the second page.

so, page1.aspx --> items into page2.aspx --> page1 + page2 form values submit to database, then redirect to thankyou.aspx

But it seems as if I can add the context items to a label, or textbox on the second page, but no data "" is inserted into the database?

Thanks for your help!

snSQL
Master Smack Fu Yak Hacker

1837 Posts

Posted - 2006-10-18 : 16:35:49
You mustn't use Server.Transfer for what you're doing. Put all the values from page1 into Session variables then do a Response.Redirect to page2. Then in page2 use the values from page2, plus the values from the Session variables to update the database.
Go to Top of Page
   

- Advertisement -