CMA
2/23/2004 10:55:00 AM
try with this code
foreach(Control test in page1.Controls)
{
if(Control.Type = System.Web.WebControls.CheckBox)
{
CheckBox temp = (CheckBox) test;
{
if(temp.Checked)
{
//do the processing here
}
}
}
hope this helps,
CMA
"Magnus" <anonymous@discussions.microsoft.com> wrote in message
news:F4042DF8-934A-4101-8E16-89FB0F20D0ED@microsoft.com...
> Hi
>
> I am adding checkboxes to a Web Forms Page Programmatically and that works
fine.
>
> My problem is that i want to know which checkbox that is i
checked/unchecked.
> And it could be upp to 100 checkboxes with different states.
>
> //Magnus