posting 2 or more values

S

sivashankar

hi experts

-In asp.net i'm having form1 and form2.
-Form :1
-I'm posting data by following code:

Response.Redirect("WEBFORM2.ASPX?A=" & TextBox1.Text)
Response.Redirect("WEBFORM2.ASPX?B=" & TextBox2.Text)
-Form :2
-In page load
TextBox1.Text = Request.QueryString("A")
TextBox2.Text = Request.QueryString("B")

But i'm getting the value only in " Textbox1.text ".

Its not possible to post 2 values ?


********************wats is the difference between session and these type of posting


can anyone plz

Thanks in advance
 
G

Guest

Hi,
The first response.redirect statement stops execution on current page and
redirects control to the webform2.aspx page, so the line below this statement
is not executed.
Try combining the two vlues as a query string
response.redirect("WEBFORM2.ASPX?A=" & TextBox1.Text & "&B=" & TextBox2.Text).

This way you can post both the values.
 
S

sivashankar

thx man

regards
siva

kesari said:
Hi,
The first response.redirect statement stops execution on current page and
redirects control to the webform2.aspx page, so the line below this statement
is not executed.
Try combining the two vlues as a query string
response.redirect("WEBFORM2.ASPX?A=" & TextBox1.Text & "&B=" & TextBox2.Text).

This way you can post both the values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top