Author: chaituprince | Posted on: 3/4/2010 7:09:45 AM | Views : 258

Hi Guys,
I have a query regarding asp.net validators. I want to conditionally skip asp.net validators and allow/disallow form submission based on a checkbox for skipping validations. I tried a few things but I am facing some problems. Please see the code snippets below to get an idea of the requirement.
// ASPX Code Snippet below  <asp:CheckBox ID="chkSkipValidation" runat="server" Text="Recruit"></asp:CheckBox> <asp:DropDownList ID="ddlAdjustingFirms" runat="server" AutoPostBack="False" AppendDataBoundItems="true"> <asp:ListItem Text="select" Value=""></asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="reqFirmName" runat="server" ValidationGroup="Main" ControlToValidate="ddlAdjustingFirms" ErrorMess ...

Go to the complete details ...