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 is the difference between static or dynamic assemblies?
What is an application domain? how they get created?
Which is the tool which can convert visual basic old version to .net compatibility version?
What is the source code for display the picture in button click event?
How can we store decimal data in .net?
How to create a constant in vb.net?
Define cls?
What is difference between metadata and manifest?
Can you please explain the difference between value and reference types?
What is the significance of delegates. Where should they be used? What are the situations where we require them?
Explain cts?
Write the role of new keyword?
what is the need for dynamic controls in vb.net? i would like to know for what purpose should we create the controls dynamically? please give the answer in simple words.
What is the difference between manifest and metadata?
what is common language specification?