How can we force all the validation control to run?

Posted by Saranya Boopathi under ASP.NET on 6/11/2013 | Points: 10 | Views : 3026 | Status : [Member] | Replies : 3
How can we force all the validation control to run?

Saranya Boopathi


Responses

Posted by: Satyapriyanayak on: 6/11/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Page.Validate

If this post helps you mark it as answer
Thanks

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: aswinialuri-19361 on: 6/11/2013 [Member] Starter | Points: 25

Up
0
Down
hi saranya,
use page.validate();
i hope it will help you
Mark as answer if it helps you
Thanks&Regards

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 6/14/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
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

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response