Showing posts with label use javascript with validation control. Show all posts
Showing posts with label use javascript with validation control. Show all posts

Saturday, February 6, 2010

How to use client script on button with validation controls

Call function onClientClick='Validate()'

JavaScript function:

function Validate()
{
Page_ClientValidate('Valid') ;//where "Valid" is validation group

if (Page_IsValid == true && Page_ValidationActive == true)
{
//do something
}

}