如何在ASP.NET C#中的在线考试系统的每一页考试中显示大约10个问题? [英] How can I display approx 10 questions in every page of exam for online exam system in ASP.NET C#?

查看:131
本文介绍了如何在ASP.NET C#中的在线考试系统的每一页考试中显示大约10个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I am new to asp.net....I am trying to develop an online exam practice website for entrance exam in asp.net with c#. I am done with the database design, login page, registration page and admin's operation such as insert, update and delete records through gridview. Now I want to develop main exam page in which user select the exam from the dropdown list and will be directed to that exam page and after giving exam result will be displayed.

I don't know to select  random questions with answer options from database and display them on the exam page...and all the exam related information should display on the result page...

Please provide me some sample code so that I should get some Idea how to implement whatever I have thought .

Here is my table design:

1) Exam Table         2) Question Table       3) Result Table
    Id			QId		RId
    ExamName		Section		ExamName
    No.OfQues		OptionA		No.OfCorrectAns
    TotalMarks		OptionB		No.OfWrongAns
     TotalTime		OptionC		MarksObtained
    ExamDate 		OptionD		No.OfAttemptQues
    QId			CorrectAns	No.OfSkipQues





我尝试过:



此代码无效:



<%@ Page Language =C#AutoEventWireup =trueCodeFile =EXAM.aspx.csInherits =EXAM %>



<!DOCTYPE html>



< html xmlns =http: //www.w3.org/1999/xhtml\">

< head runat =server>

< title>< / title>

< / head>

< body>

< form id =form1runat =server>



What I have tried:

this code is not working :

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EXAM.aspx.cs" Inherits="EXAM" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">

















输入用户名:

< asp:TextBox ID =TextBox1runat =server>


Enter UserName:
<asp:TextBox ID="TextBox1" runat="server">



< asp:PlaceHolder ID =PlaceHolder1runat =server>


<asp:PlaceHolder ID="PlaceHolder1" runat="server">



< asp:标签ID =Label1runat =serverText =Label>


<asp:Label ID="Label1" runat="server" Text="Label">



< asp:Label ID =Label2 runat =server>


<asp:Label ID="Label2" runat="server">



< asp:RadioButtonList ID =RadioButtonList2runat = 服务器>




<asp:RadioButtonList ID="RadioButtonList2" runat="server">



< asp:按钮ID =Button1runat =server

onclick =Button1_ClickText =Sunmit/>

 

< asp:Button ID =Button2runat =serveronclick =Button2_Click

Text =Results/>


<asp:Button ID="Button1" runat="server"
onclick="Button1_Click" Text="Sunmit" />
 
<asp:Button ID="Button2" runat="server" onclick="Button2_Click"
Text="Results" />



 


 






< / form>

< / body>

< / html>


</form>
</body>
</html>

推荐答案

您可以通过多种方式向用户显示问题。你真的需要决定一个设计,然后去做。
There are many, many ways you can display questions to the user. You really need to decide on a design and then do it.


这篇关于如何在ASP.NET C#中的在线考试系统的每一页考试中显示大约10个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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