Hi,
I developed one online question paper using asp.net. i had done paging for question paper such that it shows 5 questions per page using repeater. now i selected first 5 questions answers (radiobuttons) and i click next button for next page. and i come to previous page then the data what i selected for early 5 questions were un checked . to maintain data through out my application what should i do. can anybody please help me.
Thanks&Regards
Nagaraju.p
Loading

Zoran HorvatRank #792 · 2.9K reputationPosted Aug 2, 2011, 1:06 AM EDT
If you use session state, then it could look like: Session["Answer1"] = 3; Session["Answer2"] = 2; etc.
Then use these variables to set radio buttons or check boxes, etc. when showing the page.
Zoran
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Aug 2, 2011, 1:10 AM EDT
refer this LINK
nagaraju84 reputationPosted Aug 2, 2011, 2:01 AM EDT
cmdPrev.Attributes.Add("onclick", "history.back(); return false;");
if i am using the above line in pageload i am not loosing previous page records. but loosing next page records. can u please anyone help me .
Thanks&Regards
Nagaraju.P
Smart LuckyRank #2,625 · 531 reputationPosted Aug 2, 2011, 2:18 AM EDT
Try this one....
MaintainScrollPositionOnPostback="true"
nagaraju84 reputationPosted Aug 2, 2011, 2:45 AM EDT
already i tried that one still the problem remains the same.
Zoran HorvatRank #792 · 2.9K reputationPosted Aug 2, 2011, 2:48 AM EDT
Another way for you is to write pretty complicated javascript which iterates through controls on current page and stores user's answers to hidden fields, or something similar. Do not store current answers in cookies because of potentially uncontrollable volume.
Zoran