title: Client-Side validation with groups
body: <p>I have several tabs that are loaded via ajax, and each one has a set of validators. I want to allow the user to change tabs only if the tab is valid</p>
  
  <p>I thought setting a validationgroup to the validators and then check for the specific group like this, would work:</p>
  
  <pre><code>function validatePage(group) {
      return Page_ClientValidate(group);
  }
  </code></pre>
  
  <p>However, when I call the function, it always returns true. Can anyone see what I'm doing wrong?</p>
  
  <p>I check it like this</p>
  
  <pre><code>alert(validatePage("presentaciones"));
  </code></pre>
  
  <p>And I have some validators:</p>
  
  <pre><code>// (...)
  &lt;asp:TextBox ValidationGroup="presentaciones" id="txtDescription" runat="server" Text='&lt;%# Eval("Description") %&gt;' MaxLength="50" /&gt;
  &lt;asp:RequiredFieldValidator ID="DescriptionRequiredFieldValidator" runat="server" ControlToValidate="txtDescription" SetFocusOnError="true" ValidationGroup="presentaciones" ErrorMessage="Debe ingresar una descripción" Display="Dynamic" /&gt;
  // (...)
  </code></pre>