title: Asp.net Session state Trying to keep contents of textbox when returned to page
body: <p>ive two pages, one with a text box and a button, the other with a button a label. What i want to do is to display contents of the textbox on page 1, in the label of the page2 on button click. and then when i click the button to return to page1. preverse whats entered in the textbox on page1. sorry if its confusing. heres my code </p>
  
  <p>page1.aspx</p>
  
  <pre><code> protected void Button1_Click(object sender, EventArgs e)
  
   {      
   Session["fstName"] = txtBox.Text;
   Response.Redirect("Page2.aspx");
    }
  </code></pre>
  
  <p>page2.aspx</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
      {
          string a = Session["fstName"].ToString();
          lblPage2.Text = a;
      }
  
      protected void Button1_Click(object sender, EventArgs e)
      {
          Response.Redirect("WebForm1.aspx");
      }
  </code></pre>