title: Unable to get updated value of session variable and Textbox
body: <p>I am building a web application in asp.net and c#, I am storing text of textbox in Session variable like this:</p>
  
  <pre><code>Session["data"]=TextBox1.Text;
  </code></pre>
  
  <p>and on the button click event I am redirecting user to another page.In the second page I am using this variable <strong>Session["data"]</strong> and in page2 there is a back button where I am again Redirecting to page1 where the textbox1 is present.Now on the button click event where I am redirecting to page2 and event is code like this,</p>
  
  <pre><code>Session["data"]=TextBox1.Text;
  Response.Redirect("page2.aspx");
  </code></pre>
  
  <p>now when I am accessing the value of the Session["data"] it is giving me the previous value.As the content of TextBox1 may get changed,these changes have not been shown.</p>
  
  <p>Please tell me where I am going wrong.</p>