Language:

Getting all selected Items in a CheckBoxList

Language: English
Programming Language: C#
Published by: Thomas
Last Update: 4/24/2006
Views: 971

Description

I was wondering about it, but you have still to read the selected items in a CheckBoxList manually - like in old ASP.

Code

1 StringBuilder bv = new StringBuilder(""); 2 3 foreach(ListItem bvh in Bauvorhaben.Items) { 4 if(bvh.Selected) { 5 bv.Append(bvh.Value + ", "); 6 } 7 }

No comments avaiable

Add a comment

Name *  

Email (won't be displayed) *    

Website  

Comment *  

Sicherheitscode Security Code *    

RSS