Hello,
How can I send parameter( TextBox1) from one form to another ?
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
FormStation.textBox2.Text = TextBox1.Text ???????????
Response.Redirect("FormStation.aspx")
End Sub
Thanks,Sabina
You could also try using Server.Transfer if FormStation.aspx is on the same server as your first form.
This method sends all of the information that has been assembled for processing by one .asp file to a second .asp file.
When you call Server.Transfer, the state information for all the built-in objects will be included in the transfer.
All of the current contents for the request collections will be available to the .asp file receiving the transfer.
Don't know if this'll help your at all...and Aric's recommendations are probably the easiest way to do what you want.
I'm just sharing this because this method helped me out a lot lately with some session variable issues.
-Frinny