title: Getting stuck with the clientside validation in asp.net
body: <p>I have the following problem:
    In my application I have two textboxes in a aspxCallbackPanel</p>
  
  <pre><code>&lt;dx:ASPxTextBox ID="txtCognome" runat="server" Width="270px" ReadOnly="True"&gt;
     &lt;ValidationSettings CausesValidation="True" ErrorText="Cognome can't be blank" 
          SetFocusOnError="True" ValidationGroup="group1"&gt;
          &lt;RequiredField IsRequired="True" /&gt;
     &lt;/ValidationSettings&gt;
  &lt;/dx:ASPxTextBox&gt;
  
  &lt;dx:ASPxTextBox ID="txtNome" ClientInstanceName="nome" runat="server" Width="270px" ReadOnly="True"&gt;
      &lt;ValidationSettings CausesValidation="True" SetFocusOnError="True" 
           ValidationGroup="group1"&gt;
           &lt;RequiredField IsRequired="True" /&gt;
      &lt;/ValidationSettings&gt;
  &lt;/dx:ASPxTextBox&gt;
  </code></pre>
  
  <p>As far as you see I have added only a RequiredFieldValidation. However on a specific moment before I do a postback I want to see if the page is valid:</p>
  
  <pre><code> var validated = Page_ClientValidate('group1');
      if (validated){
          DoPostBack('Save'); 
      } else {
          return alert('mamata si e ebalo');
      }
  </code></pre>
  
  <p>However nothing happens. When I try to alert validated, nothing appears ... Any ideas why and is this the right way to do a client side validation? </p>