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
}

}

No comments: