forum

Home / DeveloperSection / Forums / Retriving radiobutton list from session

Retriving radiobutton list from session

Royce Roy 1919 28-Nov-2014

Retriving radiobutton list selection from session. I have a radiobutton list. I want to have what I selected when I return to the page. The radiobutton list is filled from a array of strings 

Adding selection to the session 

  Session["selection"] = RadioButtonList1.SelectedIndex;
page load 
                    if (!IsPostBack)
                    {
                    RadioButtonList1.SelectedIndex = (string)Session["selection"];
                    }

Not working not sure why


Updated on 29-Nov-2014

Can you answer this question?


Answer

1 Answers

Liked By