We Recommend

Accelerated C# 2008 Accelerated C# 2008
This book is both a rapid tutorial and a permanent reference. You’ll quickly master C# syntax while learning how the CLR simplifies many programming tasks. You’ll also learn best practices that ensure your code will be efficient, reusable, and robust. Why spend months or years discovering the best ways to design and code C# when this book will show you how to do things the right way, right from the start?


Ballyhoo


Posted By

krisdb on 05/07/08


Tagged

c-sharp


Versions (?)


Form Controls


Published in: C# 


  1. <asp:CheckBoxList id="cblName" runat="server">
  2. <asp:ListItem Text="" Value="" />
  3. <asp:ListItem Text="" Value=""/>
  4. </asp:CheckBoxList>
  5.  
  6. <asp:CustomValidator ID="cvName" ControlToValidate="txtName" EnableClientScript="false" ErrorMessage="" Runat="server" OnServerValidate="cvName_ServerValidate" CssClass="" >*</asp:CustomValidator>
  7.  
  8. foreach (ListItem item in cblAttend.Items)
  9. strReturn += (item.Selected == true) ? item.Value : " ";
  10.  
  11.  
  12.  
  13.  
  14. <asp:RadioButtonList ID="rblName" runat="server">
  15. <asp:ListItem Text="" Value="" />
  16. <asp:ListItem Text="" Value="" />
  17. </asp:RadioButtonList>
  18.  
  19. <asp:RequiredFieldValidator ID="rfvName" ControlToValidate="rblName" ErrorMessage="" runat="server" EnableClientScript="false" CssClass="">*</asp:RequiredFieldValidator>
  20.  
  21. rblName.SelectedValue

Report this snippet 

You need to login to post a comment.