For passing variables content between pages ASP.NET gives us several choices. One choice is using
QueryString
property of Request
Object.
eg :
http://www.localhost.com/Webform2.aspx?name=Atilla&lastName=Ozgur
private void btnSubmit_Click(object sender, System.EventArgs e)
{
Response.Redirect("Webform2.aspx?Name=" +
this.txtName.Text + "&LastName=" +
this.txtLastName.Text);
}
Reading the querystring parameter
private void Page_Load(object sender, System.EventArgs e)
{
this.txtBox1.Text = Request.QueryString["Name"];
this.txtBox2.Text = Request.QueryString["LastName"];
}
Hope this helps
if the response answered your question, please take a minute and mark the response as an answer.