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 is stack used for in vb. Net?

538


What is meant by jagged arrays?

585


Explain the use of new keyword?

564


Explain about delegate?

524


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

536






What is the main use of a namespace?

522


Explain about jagged arrarys ?

518


How to store images in sql server database through vb.net?

509


Explain the difference between vb 6 and vb.net?

545


Explain the use of console application?

542


What is the difference between convert.tostring and i.tostring method?

562


What is strong typing and weak typing?

551


What’s the difference between private and shared assembly?

690


What is the exact defination of object?

584


What are different types of jit ?

597