资源简介
期末题库管理系统源码
为了实现提高管理部门的工作效率;充分利用资源;减少不必要的人力,物力和财力的支出;方便教师人事管理部门的工作人员全面地掌握学生等目的;为题库管理部门,开发设计专用系统--题库管理系统来进行管理题库信息,使题库实现标准化的管理和规范化的制度是十分必要的。专用系统是一个信息管理系统MIS(Management Information System)(以下就称信息管理系统)[1],它将实现检索迅速和查找方便;信息的录入,修改和删除功能。

代码片段和文件信息
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Web.Security;
//该源码下载自www.51aspx.com(51aspx.com)
namespace examonline
{
///
/// adminpwd 的摘要说明。
///
public partial class adminpwd : System.Web.UI.Page
{
protected void Page_Load(object sender System.EventArgs e)
{
if((bool)Session[“IsLogined“]==false)
{
Response.Redirect(“index.aspx“);
}
lblmsg.Text=(string)Session[“info“];
Session[“info“]=““;
}
#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
///
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
///
private void InitializeComponent()
{
}
#endregion
protected void btnlogin_Click(object sender System.EventArgs e)
{
string oldpwd = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(txtOldpwd.Text “MD5“);
string newpwd = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(txtNewpwd.Text “MD5“);
string repwd = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(txtRepwd.Text “MD5“);
if(newpwd!=repwd)
{
Session[“info“]=“密码确认有误!“;
Response.Redirect(“adminpwd.aspx“);
Response.End();
}
string sql = “update [admin] set password=‘“+newpwd+“‘ where username=‘“ + txtid.Text.Trim() + “‘ and password=‘“ + oldpwd + “‘“;
SqlConnection cn = new SqlConnection(“Data Source=JIE-pc\\SQL2005;Initial Catalog=examonline;Persist Security Info=True;User ID=sa;Password=sa“);
SqlCommand cmd = new SqlCommand(sql cn);
try
{
cn.Open();
int h = cmd.ExecuteNonQuery();
if(h>0)
{
lblmsg.Text=“修改成功!“;
}
else
{
Session[“info“] = “用户名或密码错误!“;
Response.Redirect(“adminpwd.aspx“);
Response.End();
}
}
catch(SqlException ex)
{
Session[“info“] = “数据库错误:“ + ex.Message.ToString();
Response.Redirect(“adminpwd.aspx“);
Response.End();
}
finally
{
cn.Close();
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 56698 2011-07-05 09:28 试题管理系统(短学期课程设计)\054.swf
文件 5078 2011-07-05 18:33 试题管理系统(短学期课程设计)\adminpwd.aspx
文件 2529 2011-07-04 22:57 试题管理系统(短学期课程设计)\adminpwd.aspx.cs
文件 6503 2011-07-04 12:18 试题管理系统(短学期课程设计)\adminpwd.aspx.resx
文件 2113 2011-07-04 22:57 试题管理系统(短学期课程设计)\App_Code\AssemblyInfo.cs
文件 1558 2011-07-04 22:57 试题管理系统(短学期课程设计)\App_Code\Global.asax.cs
文件 6805 2011-07-05 10:54 试题管理系统(短学期课程设计)\createexam.aspx
文件 7418 2011-07-05 10:59 试题管理系统(短学期课程设计)\createexam.aspx.cs
文件 6387 2011-07-04 12:30 试题管理系统(短学期课程设计)\createexam.aspx.resx
文件 450 2011-07-04 12:20 试题管理系统(短学期课程设计)\Default.aspx
文件 419 2011-07-04 12:20 试题管理系统(短学期课程设计)\Default.aspx.cs
文件 1719 2011-07-04 12:21 试题管理系统(短学期课程设计)\examonline.sln
..A..H. 6656 2011-07-03 09:21 试题管理系统(短学期课程设计)\examonline.suo
文件 64 2011-07-04 12:21 试题管理系统(短学期课程设计)\Global.asax
文件 5885 2011-07-04 12:22 试题管理系统(短学期课程设计)\Global.asax.resx
文件 4399 2011-07-04 12:25 试题管理系统(短学期课程设计)\help.aspx
文件 910 2011-07-04 12:36 试题管理系统(短学期课程设计)\help.aspx.cs
文件 5317 2011-07-04 12:36 试题管理系统(短学期课程设计)\help.aspx.resx
文件 54481 2011-07-04 11:54 试题管理系统(短学期课程设计)\images\054.SWF
文件 356 2003-03-18 15:37 试题管理系统(短学期课程设计)\images\bg1222.jpg
文件 354 2003-03-18 15:37 试题管理系统(短学期课程设计)\images\bg1223.jpg
文件 152 2003-03-19 20:50 试题管理系统(短学期课程设计)\images\copyright.gif
文件 220 2003-03-19 20:50 试题管理系统(短学期课程设计)\images\footer.gif
..A.SH. 46080 2007-04-02 20:13 试题管理系统(短学期课程设计)\images\Thumbs.db
文件 63351 2011-07-04 11:19 试题管理系统(短学期课程设计)\images\ti
文件 652 2011-07-04 12:38 试题管理系统(短学期课程设计)\img.aspx
文件 2030 2011-07-05 10:43 试题管理系统(短学期课程设计)\img.aspx.cs
文件 5886 2011-07-04 12:37 试题管理系统(短学期课程设计)\img.aspx.resx
文件 5131 2011-07-07 18:50 试题管理系统(短学期课程设计)\index.aspx
文件 2102 2011-07-05 19:42 试题管理系统(短学期课程设计)\index.aspx.cs
............此处省略21个文件信息
- 上一篇:基于PIC16F877A单片机字符液晶显示数字时钟
- 下一篇:数控机床课程设计说明书
相关资源
- FTP课程设计(服务端+客户端)
- 高频电子线路课程设计报告收音机
- 直流稳压电源的课程设计、安装及调
- EDA课程设计_密码锁
- 单片机课程设计 篮球计分器
- 数据结构课程设计 6 1 彩票系统
- 端口扫描课程设计详细的报告
- 步进电机课程设计(个人设计)
- 校园网络规划与设计课程设计
- 编译原理课程设计:词法语法编译器
-
simuli
nk 课程设计 qpsk - 武汉理工大学 单片机课程设计 16*16点
- 数据库VFP课程设计
- 分页系统模拟实验 操作系统 课程设
- 模拟段页式虚拟存储管理中地址转换
- 硬件课程设计—流水灯(quartus软件
- 超市收银系统eclipse access大学课程设计
- 航空订票系统_数据结构课程设计
- c 课程设计 职工信息管理系统
- 汇编语言,课程设计,红绿灯
- 机床液压系统课程设计卧式钻床动力
- 课程设计蔬菜大棚自动控制系统,包
- 密码学课程设计:DES加密解密算法的
- 操作系统课程设计完整版
- 磁盘调度算法的模拟实现及对比
- PL/0功能扩充break功能
- 数据库课程设计以及指导思想
- ATM自动取款机系统的分析与设计
- 留言板课程设计 报告加设计
- 数据结构课程设计——图书管理系统
评论
共有 条评论