Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Request.form problem
Message
De
17/03/2008 15:13:51
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
17/03/2008 12:59:07
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01302707
Message ID:
01302769
Vues:
8
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform