I have a radio button list on a page that is used to configure products. when the page loads the first time the first list of options is displayed. you select one of them then click a "Next Step" button and the page posts back and shows a new radio button list for step 2. Now if i click a "Previous Step" button i can easily get the previous list of options to display but i can not for some reason get one of the radio buttons to be selected. I can easily bring back the value i need. right after making the radio button list i have a step that just says radiobuttonlist.selected = "somevalue" depending on whatever the user chose when they completed the first step the first time.
when i debug i see that the value is correct and is being applied. but then when the page is displayed the radiobutton is not selected.
I have noticed that when i click my "Previous" button while debugging the folowing steps occur.:
the page.load handler runs and the code inside my if not page.ispostback block does NOT run, which is correct. then the handles for the button i just clicked gets run. but then after that the page.load handler runs again but this time the code in the if not page.ispostback block DOES run...
is that normal? for the page.onload block to run twice like that on a postback? i think it may have something to do with why my value is not being applied.