Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
for loop to get checked checkBox in a dynamic table column in c# web application
Posted
Updated 5-Apr-11 19:32pm
v2
Comments
Sunasara Imdadhusen 6-Apr-11 1:31am    
Did you try anything before?
Sandeep Mewara 6-Apr-11 16:01pm    
No effort

1 solution

here is the loop

MIDL
foreach (ListItem Name  in checkBox.Items)
               {
                   if (Name.Selected == true)
                   {
                      CName += Name.Value
                   }
               }


now try to create your dynamic table

and if there is some doubt we can help you.
 
Share this answer
 
Comments
Prerak Patel 6-Apr-11 1:38am    
checkBox.Items??? It's no way possible.
Mahendra.p25 6-Apr-11 1:41am    
iam taking about checkbox list and its id.items
that is chkl.items

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900