开发者

Next & previous button with saving earlier record while clicking on previous button in asp.net

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜