title: Clearing a Password text box in ASP.NET
body: <p>I have two boxes one with username [text] and one with password [password]. </p>
  
  <p>I'm using this code in the CodeBehind:</p>
  
  <pre><code>  protected void Button2_Click1(object sender, EventArgs e)
      {
          TextBox1.Text = "";
          TextBox2.Text = "";
      }
  </code></pre>
  
  <p>[asp.net/html]</p>
  
  <pre><code>&lt;asp:TextBox ID="TextBox2" runat="server" Height="24px" Style="text-align: center" Width="209px" TextMode="Password"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>The first text box clears but the second doesn't. Is there a special way to do this in ASP.NET? </p>