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/
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/