Interviews2 answers
How we can force all the validation controls to run?
2 Answers
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
Shivam ShuklaPosted Feb 19, 2015, 9:54 PM EST
The Page.Validate() method is used to force all the validation controls to run and to perform validation.
Hussain AhmedPosted May 29, 2014, 12:51 AM EDT

