Hi,
I am displaying question paper with radiobuttons as options. i done the paging for listbox using datapager control. now i select radiobuttons for all questions in the first page and click on next button againg i selected radio buttons in that page too. after that i went to previous page now all radio buttons what i selected is deselected . now i want to keep all radiobuttons select mode what i selected in every page . how can i achieve this . please help me.
Thanks&Regards
P.Nagaraju
Loading
nagarajuPosted Aug 18, 2011, 12:40 AM
in silverlight i am not getting any sessions .it is not allowing to use arraylist and sessions . can u tell any alternate solution to get which question i selected and what answer i selected for that question.
Thanks
Nagaraju.
nagarajuPosted Aug 17, 2011, 8:43 AM
Now i am getting what ever i selected radio buttons value. but i have to get that question no also in listbox. if there is 100 questions i have to get all 100 question nos and selected value for each question. now i have to save it in one session. can anybody please help me
Thanks&Regards
P.Nagaraju
Neeraj PandeyPosted Aug 11, 2011, 8:17 AM
Create Dictionary To Store your Selected Radio Button as per question
Dictionary
Bind your RadioButtonList
selected index code Save your value in Dictionary
Session["val"] =Session["val"]+","+ RadioButtonList1.SelectedIndex;
");
Add Your selected value in Dictionary
Display Selected Question n Answer
");
in prevoius Button Click
Select Last Record From Dictionary new prevoius minus 1 last index