R
raz
I am writing this because I have not seen an solutions to this problem.
The code below worked for me...
radio button list name = rblist
rblist.DataSource= some reader;
rblist.DataBind();
for(int i=0;i<=rblist.Items.Count-1;i++)
{
rblist.Items.Attributes.Add("onclick","some function");
}
This will add the onclick event to all items in you radio button
list...
Regards,
The code below worked for me...
radio button list name = rblist
rblist.DataSource= some reader;
rblist.DataBind();
for(int i=0;i<=rblist.Items.Count-1;i++)
{
rblist.Items.Attributes.Add("onclick","some function");
}
This will add the onclick event to all items in you radio button
list...
Regards,