Mr. SweatyFinger wrote:
> I have a group of dynamically loaded check boxes.
> I need these clowns to check at least one.
>
> how can I do that??
> thanks
Hi,
I presume you are using CheckBoxList of asp.net 2.0 if this is true.
Then
for (int i = 0; i < 10; i++)
{
ListItem item = new ListItem(i.ToString());
CheckBoxList1.Items.Add(item);
}
CheckBoxList1.Items[3].Selected = true;
setting the selected property of items setting to true will make the
check box checked.
But if you are using other than CheckBoxList then
please provide a sample code
Thanks
Masudur
Kaz Software Ltd.
www.kaz.com.bd