U can pass the value through session.
Page1.cs:
protected void Button1_Click(object sender, EventArgs e)
{
HttpCookie cName = new HttpCookie("Name");
cName.Value = TextBox1.Text;
Response.Cookies.Add(cName);
Response.Redirect("Page2.aspx");
Form.Dispose();
}
Page2.cs:
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("linform1.aspx");
Constr=System.Configuration.ConfigurationManager.ConnectionStrings["masterConnectionString1"].ToString ();
}
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Cookies["Name"] != null)
TextBox1.Text = Request.Cookies["Name"].Value;
}
U can try like this.It will help you