title: Get text from asp:textbox
body: <p>I am writing ASP.NET project in C#.</p>
  
  <p>The UpdateUserInfo.aspx page consists textboxes and button. In pageLoad() method I set some text to the textbox and when button is cicked I get the new value of textbox and write it into DB.</p>
  
  <p>The problem is even if I have changed the value of textbox textbox.Text() method returns the old value of textbox ("sometext") and write this into DB.</p>
  
  <p>Here the methods:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      textbox.text = "sometext";
  }
  
  void Btn_Click(Object sender,EventArgs e)
  {
      String textbox_text = textbox.text();// this is still equals "somevalue", even I change the textbox value
      writeToDB(textbox_text);
  }
  </code></pre>
  
  <p>So, how to make textbox to appear with somevalue initially, but when user changes this value getText method return the new changed value and write this into DB?</p>