Validating in a web user control
The the dependent (clone or secondary) controls are locked to prevent users from directly editing content.
The html source for my page contains the following: I tried this already and I get a "Unable to find control id 'Web User Control1_Text Box1' referenced by the 'Control To Validate' property of 'Required Field Validator1'" error, even when I expose the textbox in my user control as a property. Text = value End Set End Property End Class I have a Required Field Validator on the same web page as my user control.
For more on repeating data, validating data, and setting a display using content controls see my tip pages on: Repeating Data, Validating Content Control Entries and Insert Content with Content Controls.
PAYMENTS/DONATIONS Do you want to make a payment for consulting work or donate to help support this site? Use the appropriate currency "Donate" button to make a payment or donation.
Before going any further I want to give some credit where credit is due. Jeff participates in the Microsoft Office Word for Developers forum.
Without his skills and his willingness to share the fruits of those skills, this tips page would still be unpublished and gathering dust.
The control validates only server-side, not client-side. Text = value End Set End Property End Class I have a Required Field Validator on the same web page as my user control.