joe_pool_is
Contributor
From a form, how can I carry the data from one Form (say a Customer's Name) to another Form?
Example:
From Form1: (assume txtName.Text = "Herman Munster")
From Form2:
Example:
From Form1: (assume txtName.Text = "Herman Munster")
Code:
Private Sub cmdSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSubmit.Click
Server.Transfer("Form2.aspx")
End Sub
Code:
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
lblName.Text = ""
' Can't assign to Form1.txtName.Text.
' So how would I do this?
End Sub