title: ASP.Net, VB: Clearing fields on the webpage
body: <p>I am developing a website using ASP.Net and VB.</p>
  
  <p>On one of the pages, there are certain fields (<code>TextBox</code>es and a <code>DropDownList</code>).
  User is supposed to fill out those fields and click 'Submit' button. Also, there is a button 'Clear Values', which if clicked by user should clear the fields on the webpage.</p>
  
  <p>The code I have written for clearing the fields was:</p>
  
  <pre><code>txtBox1.Text =  String.Empty
  </code></pre>
  
  <p>for all the <code>TextBox</code>es. But, that didn't work, as I have used few validators like <code>RequiredFieldValidator</code>, <code>RangeValidator</code>, <code>RegularExpressionValidator</code> etc. to validate the fields. So, when the user fills out few fields and then clicks on 'Clear Values' button in order to clear all the fields, then the fields don't get cleared. Insted of that the validations work and the error messages appear as per those validations.</p>
  
  <p>I also tried the following code to clear all the fields:</p>
  
  <pre><code> Response.Redirect("UserData.aspx");
  </code></pre>
  
  <p>(where 'UserData.aspx' is name of that webpage only). But, still it gives the same validation error messages.</p>
  
  <p>How to tackle this?</p>