Can you validate a usercontrol property with a CompareValidator?

D

Dave

Is there a way to validate a usercontrol's property from the page hosting the
control using a comparevalidator control? such as?

<asp:CompareValidator id="cvStartDate" runat="server" ControlToValidate="how
to reference a usercontrol's property here??"
Operator="DataTypeCheck" Type="Date" ErrorMessage="Please enter a valid start
date mm/dd/yyyy)." EnableClientScript="False">
</asp:CompareValidator>
 

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,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top