Date Validation in Formate dd/mm/yyyy in asp.net — ASP.Net — ASP.Net Example
ASP.Net Example-Date Validation in Formate dd/mm/yyyy in asp.net

Thursday, April 14, 2011

Date Validation in Formate dd/mm/yyyy in asp.net

DateValidation.aspx


<asp:textbox id="txtdate" runat="server"></asp:textbox>


<asp:regularexpressionvalidator controltovalidate="txtdate" errormessage="RegularExpressionValidator" 
id="RegularExpressionValidator1" runat="server"
validationexpression=
"(0[1-9]|[1 2][0-9]|3[0 1]|)[-/.](0[1-9]|1[0 1 2])[-/.](19/20)\d\d ">
</asp:regularexpressionvalidator>

No comments:

Post a Comment

ASPdotNET-Example