开发者

need help on this scenario , what is standard?

开发者 https://www.devze.com 2023-02-09 08:15 出处:网络
I have the scenario in my online exam asp.net mvc application. where, as student logged in-> he selects test/Exam -> then load the set of questions.

I have the scenario in my online exam asp.net mvc application.

where, as student logged in-> he selects test/Exam -> then load the set of questions.

Now I am populating the questions one by one like in wizard. this wizard is totally on the fly (means dynamically creates all elements),build in javascript and jquery.

scenario is : when student gives the answer for the question is it o开发者_JAVA百科k to hold answer in collection, and send to controller at once on last question submission or immediately save on "Next" button click ? which is better ? I think on Next button click will better . but I want to know standard way for this. Please guide me.


I don't think that there is a "standard". it depends on the requirements.

If the next question depends on the result of the previous answer you should submit it immediate. If not, I don't see a problem to submit all the answers at once. This also might save you the work of storing the answers in the Session/TempData

0

精彩评论

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