How do you validate Date by using which validation Control?
Answer Posted / arunajyothi.m
<asp:RegularExpressionValidator ID="revEndDate"
ControlToValidate="txtEndDate" ValidationExpression="((^
(10|12|0?[13578])([/])(3[01]|[12][0-9]|0?[1-9])([/])((1[8-9]
\d{2})|([2-9]\d{3}))$)|(^(11|0?[469])([/])(30|[12][0-9]|0?
[1-9])([/])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(0?2)([/])(2[0-
8]|1[0-9]|0?[1-9])([/])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(0?
2)([/])(29)([/])([2468][048]00)$)|(^(0?2)([/])(29)([/])
([3579][26]00)$)|(^(0?2)([/])(29)([/])([1][89][0][48])$)|(^
(0?2)([/])(29)([/])([2-9][0-9][0][48])$)|(^(0?2)([/])(29)
([/])([1][89][2468][048])$)|(^(0?2)([/])(29)([/])([2-9][0-9]
[2468][048])$)|(^(0?2)([/])(29)([/])([1][89][13579][26])$)|
(^(0?2)([/])(29)([/])([2-9][0-9][13579][26])$))"
SetFocusOnError="True" Display="Dynamic"
runat="server">*</asp:RegularExpressionValidator>
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain about jagged arrarys ?
What is visual basic.net culture?
Describe about visual basic.net?
What are the features present in vb 2005?
Which control is an example of an object in vb net?
What is the differences between dataset.clone and dataset.copy?
i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?
Explain code security?
What are the difference between dispose(), close(), exit(), end()?
Explain the difference between import system.data.sqlclient and system.data.oledb?
Can you please explain the difference between vb and vb.net?
How many classes a dll can contain?
What are the assembly entry points?
Explain the difference between dispose and finalize()?
What is the ruby interface generator?