asp:radiobuttonlist SelectedIndex Popup Window?
Hi,
I have a radiobuttonlist control on an aspx page. When a link on the page is clicked, a window is opened with Javascript that contains a decision tree set of questions. Based on the user's response to the popup window, I want to select an item in the radiobuttonlist on the initial page (in other words, set the SelectedIndex) and refresh the initial window. Assigning values to text box controls from a popup window is simple, but setting the 'SelectedIndex' seems to have no effect on the radiobuttonlist. Does anyone know how this can be done?
Thx!
Re: asp:radiobuttonlist SelectedIndex Popup Window?
Quote:
Originally Posted by OneSource
Hi,
I have a radiobuttonlist control on an aspx page. When a link on the page is clicked, a window is opened with Javascript that contains a decision tree set of questions. Based on the user's response to the popup window, I want to select an item in the radiobuttonlist on the initial page (in other words, set the SelectedIndex) and refresh the initial window. Assigning values to text box controls from a popup window is simple, but setting the 'SelectedIndex' seems to have no effect on the radiobuttonlist. Does anyone know how this can be done?
Thx!
I havent used RadioButtonList but cant you simply do :
NameOfTheRadioButton.Checked = true ?
Re: asp:radiobuttonlist SelectedIndex Popup Window?
Daniel,
Thanks for the follow-up. I wish it was that simple. But because a radiobuttonlist control contains many radio button items, your suggested solution won't work.
OneSource