I would like to create a custom TextBox that has a RequiredFieldValidator on it. I have attempted creating such a control that Inherits from TextBox, adding a RequiredFeildValidator (using Me.Controls.Add) in CreateChildControls. I set the RequiredFeildValidator.ControlToValidate property to Me.ID. When I run I get an error stating that the ControlToValidate can not be found.
I would like to create this control Inheriting from Textbox to expose all the TextBox attributes. Is this possible?
I would like to create this control Inheriting from Textbox to expose all the TextBox attributes. Is this possible?