title: validate textbox for date of birth
body: <p>The below code is for validating a textbox for date of birth. The conditions are </p>
  
  <ol>
  <li>Textbox can't be empty </li>
  <li>Textbox date should be in format dd/mm/yyyy  </li>
  <li>Textbox date should not be larger than current date. ie; no future date (to show error like -U r not born yet dude)</li>
  </ol>
  
  <hr>
  
  <pre><code>&lt;asp:TextBox ID="txtDateOfBirth" runat="server" CausesValidation="True" /&gt;
            (dd/mm/yyyy e.g. : 12/12/2011)
  &lt;asp:CustomValidator runat="server" ID="valDateRange" ControlToValidate="txtDateOfBirth" ErrorMessage="enter valid date" /&gt;
  </code></pre>
  
  <hr>
  
  <p>But the problem is that, the textbox is inside an ajax wrapper so only client side validations will work. 
  Anybody here, Plz help me with any hints, suggestions or with working code!!. I will be very great-full because i was working on this since morning</p>