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


Please Help Members By Posting Answers For Below Questions

What are all the parts of .net framework?

531


Explain internal keyword in .net framework?

575


What is the difference between system.applicationexception class and system.systemexception?

690


Name and explain some of the exclusive features which are present in vb?

561


What are the different variables in vb.net?

528






Did vb6 support multi-threading ?

547


How do you define a read only property in a class module?

536


Explain how to achieve polymorphism in vb.net?

553


What is misl code?

577


What is code access security?

694


what is difference between web.config and machine.config and where it will be ?

496


What is the size of .net object?

598


List the types of generations in garbage collector?

535


Which namespace are used for accessing the data?

651


What is non_deterministic finalization?

630