Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET querystring?

Status
Not open for further replies.

Helfenmir

MIS
Sep 17, 2001
61
0
0
GB
Hi All

Is someone able to help with the passing of a string variable to an ASP.NET webform text box.

Your help ASAP would be much appreciated.

Many Thanks
Helfenmir
 
Hi Helfenmir

You can try using TextBox1.Text = Request.QueryString["yourval"] - if that is what you are looking for?

Hope this helps



Craftor
:cool:
 
when you send the first page you must append your value you want.


response.redirect("webpage.aspx?ID=" & MYid)

on the next page...


myText.Text = Request.QueryString("ID")

 
1) instead of

myText.Text = Request.QueryString("ID")

you MUST check if it is not null, indeed a string and within your constraints...

2) Then again NEVER use querystrings if u dont have to (e.g. you have to if you want to make it bookmarkable) just set the values.

this.textBoxWithStuff.Text = someValueIget;

--------------------------------------
deleau@gmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top