Click here to Skip to main content
14,174,026 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
hi,


how to display the checked items in checkboxlist
Posted
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Is Google broken at your place? It is much faster for looking at these 'How to' questions on Google[^].

I seached, and some of the very first links promising to me.

http://www.w3schools.com/aspnet/control_checkboxlist.asp[^]

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.checkboxlist.aspx[^]
   
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

void Check_Clicked(Object sender, EventArgs e)
      {
         Message.Text = "Selected Item(s):<br><br>";

         // Iterate through the Items collection of the CheckBoxList
         // control and display the selected items.
         for (int i=0; i<checkboxlist1.Items.Count; i++)
         {
            if (checkboxlist1.Items[i].Selected)
            {
               Message.Text += checkboxlist1.Items[i].Text + "<br>";

            }
         }
      }

Ref: CheckBoxList Class[^]
   
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

See this link also

http://www.dotnetcurry.com/ShowArticle.aspx?ID=77[^]

Thanks
--RA
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190524.3 | Last Updated 8 Jun 2012
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100