How to check Page.Validate() on client side (JavaScript) in ASP.Net?

后端 未结 2 1777
猫巷女王i
猫巷女王i 2021-01-30 10:54

I want to check page validation on client side, like Page.Validate() but it\'s a server side method. Is there any client side function which can work like Pag

2条回答
  •  余生分开走
    2021-01-30 11:30

    There is a mini-clientside-validation API:

    http://msdn.microsoft.com/en-us/library/aa479045.aspx#aspplusvalid_clientside

    alt text

    and here are some functions to trigger validation on validators:

    alt text

提交回复
热议问题