资源简介
这是一个很好的在线考试系统,毕业设计的很好题材!对你肯东会有帮助的,这个系统写的很详细!

代码片段和文件信息
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.IO;
namespace ExamOnline
{
//该源码下载自www.51aspx.com(51aspx.com)
///
/// AutoExercise 的摘要说明:在线练习--自动组卷的功能实现
///
public class AutoExercise
{
string strcon = ““; //连接字符串
///
/// 构造函数,连接字符串
///
public AutoExercise()
{
if (strcon == ““)
{
if (HttpContext.Current.Application[“strcon“] == null)
{
string path = HttpContext.Current.Request.PhysicalApplicationPath + “DBSet.ini“;//获取文件物理路径
StreamReader sr = new StreamReader(path System.Text.Encoding.Default);
strcon = sr.ReadLine();//读取文件内容
HttpContext.Current.Application[“strcon“] = strcon;
}
else
{
strcon = HttpContext.Current.Application[“strcon“].ToString();
}
}
}
///
/// 用SQL语句绑定GridView
///
/// 要绑定的GridView
/// SQL语句
public void bindGV(GridView gv string strcmd)
{
SqlDataSource sqlds = new SqlDataSource();
sqlds.ConnectionString = strcon;
sqlds.SelectCommandType = SqlDataSourceCommandType.Text;
sqlds.SelectCommand = strcmd;
gv.DataSource = sqlds;
gv.DataBind();
}
///
/// 取得一门课程某题型难度的最大值
///
///
///
///
public int getQlevel(string cid int sid)
{
SqlConnection con = new SqlConnection(strcon);
string strcmd = “select max(qlevel) from questions where cid=‘“ + cid + “‘ and sid=‘“ + sid + “‘“;
SqlCommand cmd = new SqlCommand(strcmd con);
con.Open();
int heighLevel =Convert.ToInt32(cmd.ExecuteScalar());
con.Close();
return heighLevel;
}
///
/// 取得一门课程某题型的总题量
///
///
///
///
public int getQNum(string cid int sid)
{
SqlConnection con = new SqlConnection(strcon);
string strcmd = “select count(*) from questions where cid=‘“ + cid + “‘ and sid=‘“ + sid + “‘“;
SqlCommand cmd = new SqlCommand(strcmd con);
con.Open();
int qNum =
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2581 2007-05-21 13:59 UserControl\51aspx源码必读.txt
文件 193 2007-03-14 14:16 UserControl\examlist.ascx
文件 1740 2007-05-21 13:56 UserControl\examlist.ascx.cs
文件 2727 2007-05-08 20:23 UserControl\uc_login.ascx
文件 2673 2007-05-21 13:56 UserControl\uc_login.ascx.cs
文件 125 2007-03-27 14:33 UserControl\最新Asp.Net源码下载.url
目录 0 2007-05-21 14:00 UserControl
文件 2573 2007-05-21 14:00 51aspx源码必读.txt
文件 85 2007-05-21 12:56 DBSet.ini
文件 1484 2007-05-09 13:01 ExamOnline.sln
文件 5764 2007-05-21 13:00 Web.Config
文件 598068 2007-05-20 15:25 毕业设计说明.pdf
文件 125 2007-03-27 14:33 最新Asp.Net源码下载.url
文件 2581 2007-05-21 13:59 App_Code\51aspx源码必读.txt
文件 12196 2007-05-21 13:56 App_Code\AutoExercise.cs
文件 1170 2007-05-14 00:14 App_Code\Common.cs
文件 17551 2007-05-21 13:56 App_Code\Exam.cs
文件 773 2007-04-08 14:00 App_Code\examEnum.cs
文件 7778 2007-05-20 13:35 App_Code\login.cs
文件 125 2007-03-27 14:33 App_Code\最新Asp.Net源码下载.url
目录 0 2007-05-21 14:00 App_Code
目录 0 2007-05-21 12:52 App_Data
文件 699176 2007-03-28 17:18 Bin\System.Web.Extensions.DLL
目录 0 2007-05-21 13:42 Bin
文件 1310720 2007-05-21 13:59 DB_51aspx\ExamOnline_Data.MDF
文件 1835008 2007-05-21 13:59 DB_51aspx\ExamOnline_Log.LDF
目录 0 2007-05-21 12:54 DB_51aspx
文件 6467 2006-12-06 08:05 Images\loader.gif
目录 0 2007-05-21 12:52 Images
文件 1714 2007-05-05 12:06 JS\antiCommon.js
............此处省略36个文件信息
- 上一篇:IEC62386 207 中文版
- 下一篇:应用随机过程张波
相关资源
- 在线题库管理
- 完整版家庭在线记账理财管理系统
- Access数据库在线编辑器
- 历年深信服软件测试师考试题
- 公务员计算机专业考试要点整理
- Linux命令大全离线版&在线版
- 网上在线鲜花销售系统论文
- 在线考试系统VC (MFC)
- 在线考试系统 源代码
- 湖南省计算机等级二级考试excel题集锦
- 选择题自动考试系统
- cs模式考试程序
- 标准化题库考试系统
- 用友ERP考试系统练习题库及答案
- 软考信息处理技术员历年上机考试及
- 局域网在线考试系统V1.0
- 微信小程序驾照考试题库demo完整
- 基于LabVIEW平台和网络的计算机远程在
- 2018程序员考试大纲
- 原银在线信贷平台概要设计说明书v
- 参数在线估算的永磁同步电机最大转
- LPAR逻辑分区 ‒ 机器内可在线移动资
- 基于USB总线的MC68HC908JB8 Flash在线编程
- 基于微震和应力监测的支承压力分布
- 浓缩机加装无线传输在线监控系统的
- 金蝶在线会计平台用SaaS技术扫代理记
- 2019年6月大学英语六级考试真题及参考
- 基于RBF神经网络在线辨识的永磁同步
- 基于光纤布喇格光栅的输电线路在线
- 基于自适应滤波的三速电动机转子断
评论
共有 条评论