Author: Irianna | Posted on: 11/30/2009 10:19:35 AM | Views : 232

Hi Folks,
I've got Valiation on a lot of text boxes on a form.
I'm using this to validate each one so that they cannot be blank:
<asp:RequiredFieldValidator ID="Val1" runat="server" ControlToValidate="TextBox" ErrorMessage="*" ForeColor="#ff0000"></asp:RequiredFieldValidator>
I've got this code repeating (different ID's and Controls ofc) on about 12 text boxes. - They all work as intented and when the button at the bottom is pressed the red * appears next to the correct boxes, which is great, however:
Is there a way so that if any of these Validation Alerts appear after the submit button is pressed at the bottom of the page, that I can get a lable to appear saying something like "please check form for errors" as the form is quite large and when at the submit button, they cannot see most of the validation ...

Go to the complete details ...