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 HorvatPosted Aug 2, 2011, 6:48 AM
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
nagarajuPosted Aug 2, 2011, 6:45 AM
already i tried that one still the problem remains the same.
Smart LuckyPosted Aug 2, 2011, 6:18 AM
Try this one....
MaintainScrollPositionOnPostback="true"
nagarajuPosted Aug 2, 2011, 6:01 AM
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
Jiteendra SampathiraoPosted Aug 2, 2011, 5:10 AM
refer this LINK
Zoran HorvatPosted Aug 2, 2011, 5:06 AM
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