Posted on: 7/24/2013 1:55:23 PM | Views : 237

<asp:CheckBoxList ID="OrganizationTypesList" RepeatColumns="2" RepeatDirection="Horizontal" DataSourceID="OrganizationTypesDatasource" DataTextField="TypeName" DataValueField="OutreachOrganizationTypeID" runat="server" /> <asp:CustomValidator runat="server" id="CVOrgTypelist" ClientValidationFunction="ValidateCheckBoxList" ValidateEmptyText="true" ErrorMessage="Select Atleast one Organization Type" ValidationGroup="ParentValidation" Display="Dynamic" /> <script type="text/javascript"> function ValidateCheckBoxList(sender, args) { args.IsValid = false; alert("in"); jQuery(".CheckBoxList").find(":checkbox").each(function () { if (jQuery(this).attr("checked")) { alert("valid"); args.IsValid = ...

Go to the complete details ...