This is a discussion on Query string doubt within the ASP and ASP.NET Programming forums, part of the Web Development category; Hello, How can we pass more then one string elements through query string from one page to the other?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi Kirubhananth, Its very simple... Quote:
Use & to separate each string values.... Hope useful.. Last edited by prasannavigneshr : 02-21-2008 at 10:23 PM. |
| |||
| Thank you Mr. Prasana. I wrote the query string in the redirect function as string s = TextBox1.Text; Response.Redirect("default2.aspx?a="+s); and retreived the value in the default2.aspx page as txttitle.Text = Request.QueryString["a"].ToString(); Suppose if i have two strings to be passed from here as string s = TextBox1.Text; string s1 = TextBox2.Text; Response.Redirect("default2.aspx?a="+s); Then how can i pass these two dynamic strings s amd s1 to the default2.aspx page. |
| |||
| Hi, You can pass like this also, string s=TextBox1.Text; string s1=TextBox2.Text; Response.Redirect("Default2.aspx?s="+s+"&s1="+s1); To Retrieve Use the Following in Default2.aspx, string a=Request.QueryString["s"]; string a1=Request.QueryString["s1"]; |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is diffrenece between string.compare and string.compareordinal | shaalini | ASP and ASP.NET Programming | 3 | 12-28-2007 10:46 PM |
| Is it possible to Pass Query String to Javascript? | velhari | HTML, CSS and Javascript Coding Techniques | 1 | 11-20-2007 10:47 PM |
| how to pass and retrieve variable(query string) in same page using ajax? | ursklakshmanan | PHP Programming | 0 | 09-17-2007 12:05 PM |
| Query String | raj | PHP Programming | 1 | 07-16-2007 06:55 AM |
| encrypt and decrypt query string | hanusoftware | VB.NET Programming | 0 | 06-07-2007 05:55 AM |