To check all the controls meets the validation criteria

Virendradugar
Posted by Virendradugar under JavaScript category on | Views : 1950
There is a function provided by ASP.NET 2.0 which checks for all the controls whether they meet the asp.net validation criteria or not. Or in other words, it checks whether all the validations done using ASP.NET Validation Controls are satisfied or not.

Function name : Page_ClientValidate()

It returns true or false.

Example

function validate() //javascript function
{
var isPageValid = Page_ClientValidate();
if(isPageValid)
{
}
}

Comments or Responses

Login to post response