RadioButtonList

  • Thread starter Thread starter Dot Net Daddy
  • Start date Start date
D

Dot Net Daddy

I have a radioButtonList. It is AutoPostBack Enabled. And on every
postBack the selected item stays there. I want on every page_load no
item in the RadioButtonList to be selected. How can I do this?

Thanks in advance.
 
Hello Dot Net Daddy,

To deselct any item in a RadioButtonList, you could do something like this:

for (int i = 0; i < RadioButtonList1.Items.Count; i++)
{
RadioButtonList1.Items.Selected = false;
}

Of course, you would probably want to process the user input beforehand
(otherwise, why ask?).
 
Thank you very much.

Hello Dot Net Daddy,

To deselct any item in a RadioButtonList, you could do something like this:

for (int i = 0; i < RadioButtonList1.Items.Count; i++)
{
RadioButtonList1.Items.Selected = false;
}

Of course, you would probably want to process the user input beforehand
(otherwise, why ask?).
--
enjoy - brians
http://www.limbertech.com


Dot Net Daddy said:
I have a radioButtonList. It is AutoPostBack Enabled. And on every
postBack the selected item stays there. I want on every page_load no
item in the RadioButtonList to be selected. How can I do this?

Thanks in advance.
 
Back
Top