Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Request.form problem
Message
From
17/03/2008 15:13:51
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
17/03/2008 12:59:07
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01302707
Message ID:
01302769
Views:
6
>Hi
>
>I have a web form searchoptions.aspx with a textbox named TextBox1.
>
>I call another form using Server.Transfer("Default2.aspx",true)
>
>In default2.aspx I want to get the value of TextBox1 and am using Request.Form["TextBox1"] but this returns nothing. Request.Form[1] does give me the content of Textbox1.
>
>Why doesn't Request.Form["TextBox1"] give me what I want.
>
>Thanks
>
>Nick

Can't you just put the string in a session variable before you navigate away?
Session["SearchText"] = Texbox1.Text;

Then get it out in your page 2
string searchableText = Request.QueryString["SearchText"];

Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform