title: How can I pass values from one form to another in Asp.net
body: <p>How can I pass values from one form to another in Asp.net?</p>
  
  <p>Can you please give me an example?</p>
  
  <hr>
  
  <p>I got it. Thanks for everyone for replying.</p>
  
  <p>In source i have to write</p>
  
  <pre><code>protected void btnAdd_Click(object sender, EventArgs e)
  {
      Session["name"] = textBox.Text;
      Server.Transfer("WebForm1.aspx");
  }
  </code></pre>
  
  <p>and in target i have to write</p>
  
  <pre><code>void Page_Load(object sender, EventArgs e)
  {
      answer.Text = Session["name"].ToString();
      Session.Remove("name");
  }
  </code></pre>