Published in: C#
<asp:CheckBoxList id="cblName" runat="server"> <asp:ListItem Text="" Value="" /> <asp:ListItem Text="" Value=""/> </asp:CheckBoxList> <asp:CustomValidator ID="cvName" ControlToValidate="txtName" EnableClientScript="false" ErrorMessage="" Runat="server" OnServerValidate="cvName_ServerValidate" CssClass="" >*</asp:CustomValidator> foreach (ListItem item in cblAttend.Items) strReturn += (item.Selected == true) ? item.Value : " "; <asp:RadioButtonList ID="rblName" runat="server"> <asp:ListItem Text="" Value="" /> <asp:ListItem Text="" Value="" /> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="rfvName" ControlToValidate="rblName" ErrorMessage="" runat="server" EnableClientScript="false" CssClass="">*</asp:RequiredFieldValidator> rblName.SelectedValue
You need to login to post a comment.
