Results 1 to 3 of 3

Thread: asp:radiobuttonlist SelectedIndex Popup Window?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Question 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!

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    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 ?
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width