May 19, 2004 #1 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 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
May 19, 2004 #2 Craftor Programmer Feb 1, 2001 420 0 0 NZ Hi Helfenmir You can try using TextBox1.Text = Request.QueryString["yourval"] - if that is what you are looking for? Hope this helps Craftor Upvote 0 Downvote
Hi Helfenmir You can try using TextBox1.Text = Request.QueryString["yourval"] - if that is what you are looking for? Hope this helps Craftor
May 19, 2004 #3 checkai Programmer Jan 17, 2003 1,629 0 0 US 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") Upvote 0 Downvote
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")
May 20, 2004 #4 edelwater Programmer Jun 29, 2000 203 0 0 EU 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 http://de-leau.eigenstart.nl Upvote 0 Downvote
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 http://de-leau.eigenstart.nl