ASP.NET 2.0: CompareValidator problem

R

R.A.M.

Hello,
I am learning ASP.NET 2.0 and I have a problem with CompareValidator
control. On .aspx page I have a control:

Date of birth: <asp:TextBox ID="BirthDate" runat="server"
ValidationGroup="BirthDate" />

It works fine, but when I add CompareValidator with Type:

<asp:CompareValidator ID="BirthDateValidator" runat="server"
ValidationGroup="BirthDate" ControlToValidate="BirthDate" Type="Date"
Text="Enter birth date!" />

Then I have a problem that page is not displayed - Application_Error()
is generated.
Could you help me please to write it correctly?
Thank you!
/RAM/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top