使用C#在Asp.net中进行在线测试系统? [英] Online Test system in Asp.net using C#?

查看:137
本文介绍了使用C#在Asp.net中进行在线测试系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的所有专家您好,



其实我已经为我的公司创建了在线测试。在这里,我们在数据库中有2000个问题。我做了一个程序,从数据库中抽取100个随机问题并为用户生成测试。



现在问题是我可以在考试开始时存储用户测试客户端。之后如果互联网断开,它不会影响用户测试。他只需要互联网提交测试。



有可能吗?如果是,那么请指导我如何做到这一点。谢谢,请原谅我,如果我无法解决我的问题。

Hello to all respected expert,

Actually I have create online test for my company.In this we have 2000 questions in database.I have made a program which is taking 100 random questions from database and generate test for user.

Now the problem is could i store the user test client side during the start of the exam.After this if internet disconnect it will not affect user test.He need internet only to submit the test.

Is it possible? If it is then please guide me how to do this. Thank you and forgive me if I am not able to clear my question.

推荐答案

是的:保存随机问题,到目前为止他的答案,以及他有多远进入一个cookie(在他的电脑上)或数据库中的登录ID(在服务器上)



饼干可能是最简单的:

编写cookie [ ^ ]

阅读cookie [ ^ ]
Yes: save the random questions, and his answers so far, and how far he has got in either a cookie (on his PC) or in a database against his login id (on the server)

Cookies are probably the easiest:
Writing a cookie[^]
Reading a cookie[^]


最好使用集合类来存储问题,比如哈希表或arraylist,使用集合对象来设置会话。
Better you use collection classes to store questions, like hashtable or arraylist, use collection object to set in session.


最好保存每3个问题一次最后回答你可以保存到目前为止用户回答的所有问题.....所以在回答问题后提供一个包含3个问题和保存按钮的页面......
its better to save each 3 questions once answered then finally u could save all the questions what the user answered so far..... so provide a page with 3 questions and save button after answering the questions.....


这篇关于使用C#在Asp.net中进行在线测试系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆