Validating two usercontrols

Rated 4.51/5 based on 830 customer reviews

Also there is no way to specify multiple validaiton group using the Validation Group property of the button control.

The way to solve this problem is to call Page_Client Validate javascript function.

And you get the error "Adding the first line to the control tells the validation framework to use the Text property of the User Control.That means that the Javascript code needs a value to validate and the server validation needs a property to validate.So, first step, you create your web user control by putting some controls in it.When one looks at the source code, though, there is no html control that has the id of the user control.It doesn't use a span or a div to encapsulate its controls. There is one more quirk regarding web user controls that have more children that render an html object with a '' attribute.

Leave a Reply