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.
"sivashankar" wrote:
> 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
>
>
>
>
|