Validating two usercontrols usa free sex chart

Posted by / 28-Jul-2017 11:57

Validating two usercontrols

In such a scenario when you click the submit button only the validator which doesn’t have validation group will be executed i.e. Since there are more than one validation group assigning button’ Validation Group wont work as it will execute only validator controls which belong to the assigned validaiton group.Other validator controls belonging to other validation group won’t execute.The answer lies in calling the “Page_Client Validate” javascript method with the validation group name.

The client validation works on html controls, by looking (recursively) for a '' attribute.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.This is the default behavior of validation controls.So how to call the validation controls of different groups?

validating two usercontrols-78validating two usercontrols-72validating two usercontrols-20

NET Web page—you can add existing Web server controls and markup to a user control, and define properties and methods for the control. If there is any textbox empty then it will show a validation to fill the textbox values.