<asp:TextBox ID="txtDateOfBirth" runat="server" ClientIDMode="Static" onchange="validate(this.id);"></asp:TextBox> <ajax:CalendarExtender ID="CEDateOfBirth" runat="server" TargetControlID="txtDateOfBirth" Format="MM/dd/yyyy" PopupPosition="BottomRight" SkinID="calebdar" ClientIDMode="Static"> </ajax:CalendarExtender> <ajax:TextBoxWatermarkExtender ID="WaterMarkDateOfBirth" runat="server" TargetControlID="txtDateOfBirth" WatermarkText="Date Of Birth *"> </ajax:TextBoxWatermarkExtender> <asp:RequiredFieldValidator ID="rfv_DateOfBirth" runat="server" ControlToValidate="txtDateOfBirth" ForeColor="Red" ValidationGroup="Add" resourcekey="rfv_DateOfBirth" ErrorMessage="Please select Date of Birth." ClientIDMode="Static" >*</asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="re_DateOfBirth" ValidationGroup="Add" runat="server" resourcekey="re_DateOfBirth" ForeColor="Red" ControlToValidate="txtDateOfBirth" ValidationExpression="^([0]\d|[1][0-2])\/([0-2]\d|[3][0-1])\/([2][01]|[1][6-9])\d{2}(\s([0-1]\d|[2][0-3])(\:[0-5]\d){1,2})?$" ClientIDMode="Static" ErrorMessage="Please enter a valid Date of Birth.">* </asp:RegularExpressionValidator>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)