书签 分享 收藏 举报 版权申诉 / 24

类型网络考试系统设计及实现.docx

  • 文档编号:8026197
  • 上传时间:2023-01-28
  • 格式:DOCX
  • 页数:24
  • 大小:864.25KB
";

SetFocus("TxtPwd");

}

else{

if(Session["userInfo"]==null)

{Session["userInfo"]=userInfo;}

else{userInfo=(string)Session["userInfo"];}

}

Response.Redirect("Default.aspx");

}

elseif(userRole.Equals("学生"))

{stringstuinfo=logininName;

if(logininName=="")

{

LabResult.Text="账号或者密码不能为空!

";

SetFocus("TxtPwd");

}

else

{

if(Session["stuinfo"]==null)

{Session["stuinfo"]=stuinfo;}

else{stuinfo=(string)Session["userInfo"];}

}

Response.Redirect("Default.aspx");

}

}

protectedvoidBtnLogin_Click(objectsender,ImageClickEventArgse)

{

if(IdentityDropDownList.SelectedValue=="考务人员")

{

stringemployeeNo=TxtName.Text.Trim();

stringpassWord=TxtPwd.Text.Trim();

RedirectPath(IdentityDropDownList.Text,employeeNo,passWord);

}

elseif(IdentityDropDownList.SelectedValue=="学生")

{

stringStuLogName=TxtName.Text.Trim();

stringStuPassword=TxtPwd.Text.Trim();

RedirectPath(IdentityDropDownList.Text,StuLogName,StuPassword);

}

}

B.注册页面Register.aspx.cs代码

usingSystem;

usingSystem.Collections.Generic;

usingSystem.Linq;

usingSystem.Web;

usingSystem.Web.UI;

usingSystem.Web.UI.WebControls;

usingSystem.Collections;

usingSystem.Configuration;

usingSystem.Data;

usingSystem.Web.Security;

usingSystem.Web.UI.HtmlControls;

usingSystem.Web.UI.WebControls.WebParts;

usingSystem.Xml.Linq;

usingBussinessLayer;

usingSystem.Transactions;

publicpartialclassRegister:

System.Web.UI.Page

{

privateStuInfos

配套讲稿:

如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

特殊限制:

部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

关 键  词:
网络 考试 系统 设计 实现
提示  冰豆网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:网络考试系统设计及实现.docx
链接地址:https://www.bdocx.com/doc/8026197.html
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2022 冰点文档网站版权所有

经营许可证编号:鄂ICP备2022015515号-1

收起
展开