updating Textbox.text in serverside code asp.net
<p>I have a textbox in my default.aspx page that I want to update it's text property in an event handler but the change does not take place after executing the code .</p>

<pre><code>void _gsc_Task_Completed(object sender, TaskEventArgs e)
{

  TextBox1.Text = "New Value";


}
</code></pre>

<p>How ever , if I do this on the click event of a simple button the textbox.Text value<br>
changes.</p>

<p>what is the difference between a custom event handler like _gsc_Task_Completed and a simple button click event ?</p>
