Get Set values of TextBox Control from server side
<p>Let say I have this code on Page load of ASP.NET Webform</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    TextBox1.Text = "123";
}
</code></pre>

<p>and this is my control in aspx file</p>

<pre><code>&lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
&lt;asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /&gt;
</code></pre>

<p>If I change the textbox data from 123 to 12548 or any thing in the front end and then I click the button
Now in this is my code behind button click event</p>

<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
    string s = TextBox1.Text;
}
</code></pre>

<p>Now in <code>TextBox1.Text</code> I should be getting 12548 or updated value instead I am getting 123 which I have already set in page load.</p>

<p>Now I want to get the updated value, how may I do it the right way.</p>