在aspx页面Button的OnClientClick事件中:

OnClientClick="if(CheckClientValidate()) {return ValidCustom()}"

js脚本中:

 

//用户控件验证
function CheckClientValidate()
{
Page_ClientValidate();
if (Page_IsValid)
{
return true;
}
else
{
return false;
}
}



//自定义JS脚本验证

function ValidCustom()

{

//验证代码

}

 

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2021-06-29
  • 2022-01-17
  • 2021-09-24
  • 2021-09-06
猜你喜欢
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2021-09-18
  • 2021-09-29
相关资源
相似解决方案