i want to pass my textbox value to another page and display in label on submit button click on first page
Page 1
protected void btnSubmit_Click(object sender, EventArgs e) { Session["Data"] = TextBox1.Text; }
Page 2
protected void Page_Load(object sender, EventArgs e) { if (Session["Data"] != null) { Label1.Text = Session["Data"].ToString(); } }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.