radiobuttonlist in a paging datalist
I am having a hard time getting a datalist to page, and retrieve the value of a selected RadioButtonList item in one web form. The RadioButtonList is bound based on the item in the datalist. Disabling View State has not helped me with this. For some reason, I can retrieve a value from the current list, but it is not always the item that I selected.
For example, I am creating an online exam (a datalist) with the question and answers on 1 item - the page size is set to 1 item, so 1 question is displayed at a time. Based on a hidden label with the question ID, I retrieve the answers via a DataReader and then bind to the RadiobuttonList. I am currently doing a response.write of the selected item to find a pattern, but there seems to be none. Regardless of what is selected, one random item is being set as the selected item.
Anyone have experience with this, or suggestions?
Thanks.
|