但其他脚本,与 asp.net 验证控件一起进行脚本验证时,容易使 asp.net 验证控件的验证,失去效果,下面提供了一种比较好的解决方案

 

        <asp:Button ID="btnOK" runat="server" Text="确定" onclick="btnOK_Click" OnClientClick="if (typeof(Page_ClientValidate) == 'function') if(Page_ClientValidate()){ return isValidUserName();} "
            style
="margin-left: 0px" Width="49px" />

相关文章:

  • 2021-11-21
  • 2021-09-08
  • 2022-03-02
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-12-29
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-05-28
  • 2021-09-18
  • 2021-12-28
  • 2021-09-08
相关资源
相似解决方案