Skip to content

Categories:

OnClientClick and ASP.NET Validator controls

If you use ASP.NET validator controls and try to use OnClientClick event, you will find that the validator wornt run. The solution is to add this to your javascript code:

if(Page_ClientValidate())

From: http://alvinzc.blogspot.com/2006/10/aspnet-requiredfieldvalidator.html

Posted in Uncategorized.

Tagged with , , .