How to apply validation on a user control?
<p>I have a ascx file in which i have placed the below code:</p>

<pre><code>&lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %&gt;
&lt;asp:TextBox ID="textboxDate" runat="server" CssClass="FieldValue" MaxLength="10"
Columns="12" autocomplete="off" Style="padding-right: 18px; border: 1px solid #567890;" /&gt;
&lt;ajaxToolkit:CalendarExtender ID="calendarExtenderDate" runat="server" TargetControlID="textboxDate"
PopupButtonID="textboxDate" /&gt;

&lt;asp:RequiredFieldValidator runat="server" Enabled="false" ControlToValidate="textboxDate"
ID="valRequired" ErrorMessage="* This field is required" EnableClientScript="true"
Display="Dynamic" Text="*" /&gt;

&lt;asp:CompareValidator runat="server" CssClass="error" ControlToValidate="textboxDate"
Operator="DataTypeCheck" Display="Dynamic" Type="Date" ID="valValidDate" ErrorMessage="* Date is in an incorrect format"
Text="*" EnableClientScript="true" /&gt;


&lt;asp:CustomValidator CssClass="error" Text="*" runat="server" ID="rangeVal" Display="dynamic" OnServerValidate="rangeVal_Validate" /&gt;
</code></pre>

<p></p>

<p>I'm calling this user control in one of my form by </p>

<pre><code> &lt;uc:DateControl ID="dateControlStart" runat="server" RequiredErrorMessage="please enter date" /&gt;
</code></pre>

<p>So , i want if user select any date which is less than or equal to current date an error should come saying "incorrect error". I want to do this validation in the aspx page on client side not in user control. Can any one help me?</p>
