Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep selection status cross pages

Status
Not open for further replies.

kshea

Technical User
May 31, 2002
60
CA
Hello All,

I have a web form with 2 radio buttons in the radiobuttonlist control, this form can extends to second page and user can go from one page to another. In order to persist the radio button selection status, I persist a flag value using session/cache when loading the second page, then set back the selection status in Page_Load event of the first page. But when I try to switch to a different radio button in the first page, somehow it won’t trigger the radio button list SelectedIndexChanged event to do the swith. Does anybody have an idea what's going wrong here? Thanks a lot.
 
I am thoroughly confused what you are doing and what your question is. Maybe some code with comments would help.

Jim
 
Let me try to be more clear..

The first page has radio button 1 &2 which is a radio button list control. The default is radio button one gets selected. If user selects radio button two, then go to second page, I want to keep the previous selection when coming back to page one. What I did is to save a value as a flag when directing the second page then pass this value to the first page, set back the radio button selection status to radio button two in the page load event. Then the problem is that I cannot select radio button one afterwards.
 
Never mind, I fixed. Thanks for asking, Jim!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top