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

Can you please explain the difference between dispose and finalize()?

498


What are jagged arrarys ?

564


Explain trace in vb.net?

513


Explain about the ruby interface generator?

542


Name a feature which is common to all .net languages?

573






What are option strict and option explicit?

785


What is branching logic control in VB.NET?

566


How do you call a stored procedure in Visual Basic?

576


Explain the differences between vb.net and c#, related to oops concepts?

513


Write the role of new keyword?

605


What is an assembly and its use?

540


What is jagged array in vb.net?

628


Explain how to achieve polymorphism in vb.net?

541


Explain how does the xmlserializer work?

587


What is redim keyword and its use?

581