title: Textbox value not getting cleared
body: <p>In the below code TextBox value is not getting cleared after clicking on Button.</p>
  
  <p>Default.aspx</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
      &lt;/asp:ScriptManager&gt;
      &lt;br /&gt;
      &lt;asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="20"&gt;
      &lt;/asp:Timer&gt;
      &lt;br /&gt;
      &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
      &lt;Triggers&gt;
                  &lt;asp:AsyncPostBackTrigger controlid="Timer1" eventname="Tick" /&gt;
              &lt;/Triggers&gt;
          &lt;ContentTemplate&gt;
          &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
      &lt;asp:Repeater ID="Shout_Box" runat="server"&gt;
              &lt;ItemTemplate&gt;
                 &lt;%# DataBinder.Eval(Container.DataItem, "Message") %&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:Repeater&gt;
  
          &lt;asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /&gt;
          &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
      &lt;asp:TextBox ID="TextBox1" runat="server"&gt;
          &lt;/asp:TextBox&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>C# code for button click.</p>
  
  <pre><code>protected void Button1_Click(object sender, EventArgs e)
  {
      string MyConString = "DRIVER={MySQL ODBC 3.51 Driver};" + "SERVER=localhost;" + "DATABASE=repeater;" + "UID=root;" + "PASSWORD=********;" + "OPTION=3";
      OdbcConnection MyConnection = new OdbcConnection(MyConString);
      OdbcCommand cmd = new OdbcCommand("INSERT INTO table1(message)VALUES(?)", MyConnection);
      cmd.Parameters.Add("@email", OdbcType.VarChar, 255).Value = TextBox1.Text;
      MyConnection.Open();
      cmd.ExecuteNonQuery();
      MyConnection.Close();
      TextBox1.Text = "";
  }
  </code></pre>
  
  <p>I tried adding a line as above <code>TextBox1.Text = "";</code> to clear text but no use.
  Please do not ask me to keep Button outside the updatepanel tag. I need the event to be done without posting back the page.</p>
  
  <p>If TextBox is inside  Due to timer trigger for ever 20 fsecs the textbox is too blinking and not allowing to edit. To say simply TextBox is refreshing and not allowing even a single bit of text to add.</p>
  
  <p>I don't want to extend this to JavaScripts and other to clear a value in textbox. Can anybody tell me how to clear the textbox value using C#.</p>