2
Reply

How we can force all the validation controls to run?

Hussain Ahmed

Hussain Ahmed

10y
3.7k
0
Reply

    All the validation controls in the ASP.NET page can be run by using the following code "Page.Validate()". Optionally one can also specify the name of the Validation Group name, as a parameter, to be executed. Page.Validate(); OR Page.Validate("user"); // user -> is validation group name

    The Page.Validate() method is used to force all the validation controls to run and to perform validation.