How do you validate Date by using which validation Control?
Answer Posted / kamalakannan.a
<asp:regularexpressionvalidator id="regExpDate"
runat="server"
ValidationExpression="^\d{2}[\/-]\d{2}[\/-]\d{2,4}$"
ErrorMessage="It is not a valid date"
ControlToValidate="txtpatientvisitdate"
EnableClientScript="False"
Display="Dynamic"></asp:regularexpressionvalidator>
Kamal..
Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
What are all the parts of .net framework?
Explain internal keyword in .net framework?
What is the difference between system.applicationexception class and system.systemexception?
Name and explain some of the exclusive features which are present in vb?
What are the different variables in vb.net?
Did vb6 support multi-threading ?
How do you define a read only property in a class module?
Explain how to achieve polymorphism in vb.net?
What is misl code?
What is code access security?
what is difference between web.config and machine.config and where it will be ?
What is the size of .net object?
List the types of generations in garbage collector?
Which namespace are used for accessing the data?
What is non_deterministic finalization?