Page_ClientValidate is validating multiple times.
asp.net, javascript, validation
Solution
The problem is that the function Page_ClientValidate takes an input parameter, if you don't specify the input then the validationsummary triggers once per groupname.
In your case, the function triggers twice: once for groupname="ContactGroup" and another time for groupname=""
you should change
var isPageValid = Page_ClientValidate();
to
var isPageValid = Page_ClientValidate('');
if you don't want to specify a ValidationGroup, or if you want to specify a groupname then you need to call Page_ClientValidate like so:
var isPageValid = Page_ClientValidate('ContactGroup');
Problem
problem i have is that, the validation summary message(alert) is displayed twice. I cannot figure out the reason. Please help. Here is the code ``` function validate() //javascript function { if (typeof(Page_ClientValidate) == 'function') { var isPageValid = Page_ClientValidate(); if(isPageValid) { } } } <asp:Button ID="btn1" runat="server" OnClientClick="validate()" Text="button" ValidationGroup="ContactGroup" /> <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" ValidationGroup="ContactGroup" /> ```