About Server.Transfer

  • Thread starter Thread starter MingChih Tsai
  • Start date Start date
M

MingChih Tsai

Dear All,

How could I recevie the id value from
Server.Transfer("a.aspx?id=1234")

For example, in the form I can use Request.Form["id"], in the string
I can use Request.QueryString["id"]

Thanks,
pp
 
Hi MingChih Tsai,
\\\\\\\\\
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Page.IsPostBack Then
Label2.Text = ViewState("id").ToString
Else
ViewState("id") = "1234"
End If
End Sub

Private Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Label1.Text = "Now sended back"
End Sub
/////
I hope this helps
Succes
Cor
 
Back
Top