ASP.net中的在线考试项目,C# [英] Online Examination Project in ASP.net , C#

查看:52
本文介绍了ASP.net中的在线考试项目,C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

我正在进行在线考试项目。

要开始考试,我想显示所有问题。随机放在我的页面底部。当用户点击特定的否时,问题存储在该号码。将以标签显示。

有些人可以告诉我如何显示所有问题。在我的asp.net页面下面,如何在标签中显示该问题??

Hi..
I am making Online Examination Project.
To start the exam , i want to display all the question nos. randomly on bottom of my page. when user clicks particular No, Question stored at that no. will get displayed in label.
Can some tell me how to display all question no. below on my asp.net page, and how do display that question in label??

推荐答案

你可以用标准表(###)解决这个问题
u can solve this problem with Standard table (###)


从它的外观来看,你需要一定数量的按钮来反对你打算提出多少问题。每个问题都需要在数据库中,主键是问题编号。将问题编号发布到按钮的内容。



然后你需要设置每个按钮,以便在按下时从数据库中提取相应的问题。设置数据库等只需要一点时间就不难了。



希望这会有所帮助。



改变按钮等颜色的方法你需要一个if语句,如果选择了一个答案,就会改变背景颜色到所需的颜色。



另一种方法是在xml / excel文件中有一个问题池并导入它们一次从池中随机导入20个问题,然后根据需要进行分配。
Well by the looks of it you need a set amount of buttons against how many questions you intend to have. Each question needs to be in a database with the primary key being the question number. Post the question number to the content of the button.

Then you need to set each button so that on press the appropriate question is pulled from the database. It won't be to difficult just a bit time consuming setting up db etc.

hope this helps.

The way to change colours on buttons etc you would need an if statement saying something along the lines of if an answer has been selected changed background colour to desired colour.

Another way to do it would be to have a pool of questions in a xml/excel file and import them in once all are imported randomly pic 20 questions out of the pool and then assign as appropriate.


您好,

可能是这个链接 http://dotnet.tekyt.info/?p = 34 可以帮助解决你的问题。



谢谢!
Hi,
Possibly this link http://dotnet.tekyt.info/?p=34 can be help to sort out your problem.

Thanks!


这篇关于ASP.net中的在线考试项目,C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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