//Set the value of Textbox to session Session["Data"] = Textbox1.Text; //Perform your Redirect Response.Redirect("YourPageB.aspx");
if (!String.IsNullOrEmpty(Session["Data"].ToString())) { //Read values from session string valueA = Session["Data"].ToString(); }
Thanks, A2H My Blog
protected void btnRedirect_Click(object sender, EventArgs e) { //Pass the value from Textbox as Query string Response.Redirect("YourPageB.aspx?PassingValue=" + Server.UrlEncode(Textbox1.Text)); }
//Read the values from Query string string value = Request.QueryString["PassingValue"].ToString();
Login to post response