title: Why ValidatorValidate() validates all the RequiredFieldValidator controls on the page?
body: <p>In following code Why <code>ValidatorValidate(v)</code> validates all the <code>RequiredFieldValidator</code> controls on the page? It should execute only <code>RequiredFieldValidator1</code> not <code>RequiredFieldValidator2</code>. <br/> Here is code.</p>
  
  <pre><code>    &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
      &lt;script type="text/javascript"&gt;
          function check() {
  
              var v = document.getElementById("&lt;%=RequiredFieldValidator1.ClientID%&gt;");
              ValidatorValidate(v);
  
          }
          &lt;/script&gt;    
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form id="form1" runat="server"&gt;
          &lt;div&gt;
  
              &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
              &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                  ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox1"&gt;&lt;/asp:RequiredFieldValidator&gt;
              &lt;asp:TextBox ID="TextBox2" runat="server"&gt;&lt;/asp:TextBox&gt;
              &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                  ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox2"&gt;&lt;/asp:RequiredFieldValidator&gt;
              &lt;br /&gt;
              &lt;asp:Button ID="Button1" runat="server" OnClientClick="check()" Text="Check" /&gt;
  
          &lt;/div&gt;
  
          &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>