I have a ValidationSummary on client side (which should be called by asp:LinkButton) that check my RequiredFieldValidator and CustomValidator :
<asp:ValidationSummary
ID="valSum"
runat="server"
CssClass="label"
HeaderText="There are these errors:"
ShowSummary="False"
ShowMessageBox="True"
EnableClientScript="True"
DisplayMode="BulletList">
</asp:ValidationSummary>
and I need, if there are the errors (so there are empty fields or the custom validators fail) call another javascript function.
I really hope that this is possible on .NET 3.5, right?
I’ve read a similar question on SO here, but is not clear at all.
Yes this is possible. You will need to change the OnClientClick property of your linkbutton and/or other controls causing the validation to perform. Also put your CausesValidation property to false.
Javascript function:
If you want to only validate a group you can pass the name of the group to the ‘DoValidation’ function.