Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a textbox and applied ajax calender control on that set format as

dd/MMM/yyyy means date should be like 01/Dec/2010 .
and want to validate it .What should I do to validate?

My code is below:
XML
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    <cc1:CalendarExtender ID="TextBox2_CalendarExtender" runat="server"
        Enabled="True" Format="dd/MMM/yyyy" TargetControlID="TextBox2">
    </cc1:CalendarExtender>



Thanks a lot in advance.
Posted
Updated 9-Dec-10 18:34pm
v2

1 solution

Use regular expression validator
check here for dd/MMM/yyyy[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900