Hi I am using one label that displays question & radiobuttonlist for answers. when i click next button next question appears & on previous click previous 开发者_如何学编程question appears but i cant save my earlier answer as it should be display when i click to previous option. how i can do this? Asp.net c# Thank you.
When you are showing the current record by clicking radiobuttonlist currently, store the recordid into ViewState and when user is clicking Next or Previous, get the id from ViewState and query the database greater than for next and less than for previous exam question.
I think you're not using a database to get the questions, hence, use a database to store and retrieve the values of answers when you click next or previous
精彩评论