资源简介
一个好看的网页,我们做的校园报修系统,希望你们喜欢

代码片段和文件信息
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.OleDb;
public partial class _Default : System.Web.UI.Page
{
private OleDbConnection myconnection;
private string user pswordusernameusercode;
protected void Page_Load(object sender EventArgs e)
{
string dataPath = Server.MapPath(“Information.mdb“);//获取数据库路径
//Response.Write(dataPath);
string conn = “Provider=Microsoft.ACE.OLEDB.12.0;Data Source=“ +dataPath;
myconnection = new OleDbConnection(conn);
myconnection.Open();
user = Convert.ToString(userID.Text);
psword = Convert.ToString(password.Text );
usercode = validatepass.Text;
password.TextMode = TextBoxMode.Password;
Session[“userID“] = ““;
Session[“psword“] = ““;
Session[“username“] = ““;
Session[“repairmantype“] = ““;
}
protected void Button1_Click(object sender EventArgs e)
{
string checkcode = Session[“LVNum“].ToString();
if ( usercode == checkcode)
{
if (RadioButton1.Checked)
{
OleDbCommand myCommand = new OleDbCommand(“select * from UserInformation where UserID=‘“ + user + “‘and UserPassword=‘“ + psword + “‘ “ myconnection);
OleDbDataAdapter Adapter = new OleDbDataAdapter();
Adapter.SelectCommand = myCommand;
DataSet myDS = new DataSet();
Adapter.Fill(myDS);
if (myDS.Tables.Count == 1 && myDS.Tables[0].Rows.Count == 0)
{
userID.Text = ““;
password.Text = ““;
validatepass.Text = ““;
Label1.Text = “*用户名或密码错误!“;
}
else
{
Session[“userID“] = user;
Session[“psword“] = psword;
Session[“username“] = myDS.Tables[0].Rows[0][“UserName“].ToString();
myconnection.Close();
Response.Write(“ript Language=‘javascript‘>alert(‘登录成功!‘); ript>“);
Response.Write(“ta http-equiv=‘refresh‘ content=‘0;url=Menu/Menu.aspx‘>“);
}
}
else if (RadioButton2.Checked)
{
OleDbCommand myCommand = new OleDbCommand(“select * from RepairmanInformation where RepairID=‘“ + user + “‘and RepairPassword=‘“ + psword + “‘ “ myconnection);
OleDbDataAdapter Adapter = new OleDbDataAdapter();
Adapter.SelectCommand = myCommand;
DataSet myDS = new DataSet();
Adapter.Fill(myDS);
if (myDS.Tables.Count == 1 && my
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 21150 2009-11-29 11:25 RepairSystem\css\st
文件 4920 2018-06-24 23:19 RepairSystem\EvaluateSystem\EvaluateInformation.aspx
文件 3835 2018-06-24 23:03 RepairSystem\EvaluateSystem\EvaluateInformation.aspx.cs
文件 2020 2017-07-20 09:48 RepairSystem\HTML5星空夜空背景登录界面模板\css\component.css
文件 587 2017-07-20 09:47 RepairSystem\HTML5星空夜空背景登录界面模板\css\demo.css
文件 1825 2016-12-09 19:55 RepairSystem\HTML5星空夜空背景登录界面模板\css\normalize.css
文件 174899 2017-07-20 09:49 RepairSystem\HTML5星空夜空背景登录界面模板\img\demo-1-bg.jpg
文件 37970 2016-03-23 15:22 RepairSystem\HTML5星空夜空背景登录界面模板\img\login_ico.png
文件 1761 2017-07-21 08:18 RepairSystem\HTML5星空夜空背景登录界面模板\index.html
文件 5749 2016-12-09 19:55 RepairSystem\HTML5星空夜空背景登录界面模板\js\demo-1.js
文件 5211 2016-12-09 19:55 RepairSystem\HTML5星空夜空背景登录界面模板\js\EasePack.min.js
文件 2429 2016-12-09 19:55 RepairSystem\HTML5星空夜空背景登录界面模板\js\html5.js
文件 1231 2016-12-09 19:55 RepairSystem\HTML5星空夜空背景登录界面模板\js\rAF.js
文件 25167 2016-12-09 19:55 RepairSystem\HTML5星空夜空背景登录界面模板\js\TweenLite.min.js
文件 560 2018-07-05 22:48 RepairSystem\images\bgtab.gif
文件 21150 2009-11-29 11:25 RepairSystem\jiaoben1792\css\st
文件 560 2009-11-29 11:25 RepairSystem\jiaoben1792\images\bgtab.gif
文件 1702 2009-11-29 11:25 RepairSystem\jiaoben1792\images\RSS_icons.png
文件 1453 2013-12-12 10:18 RepairSystem\jiaoben1792\index.html
文件 55740 2009-11-29 11:25 RepairSystem\jiaoben1792\js\jquery.min.js
文件 728 2009-11-29 11:25 RepairSystem\jiaoben1792\js\lavalamp.min.js
文件 2305 2009-11-29 11:25 RepairSystem\jiaoben1792\js\xixi.js
文件 3177 2011-03-21 12:55 RepairSystem\jiaoben1792\说明.htm
文件 75 2013-12-12 10:17 RepairSystem\jiaoben1792\说明.txt
文件 55740 2009-11-29 11:25 RepairSystem\js\jquery.min.js
文件 728 2009-11-29 11:25 RepairSystem\js\lavalamp.min.js
文件 2305 2009-11-29 11:25 RepairSystem\js\xixi.js
文件 5733 2018-07-05 22:40 RepairSystem\Menu\Menu.aspx
文件 383 2005-09-07 09:40 RepairSystem\Menu\Menu.aspx.cs
文件 4232 2018-07-05 22:36 RepairSystem\Page.aspx
............此处省略63个文件信息
相关资源
- 一个超简单的企业管理系统(带ACCE
- 基于MVC模式的会员管理系统
- web班级网站设计代码
- 房屋信息咨询网动态网页
- 兔子养殖场管理系统
- 高校排课系统设计与实现
- 手机短信api接口(源代码)
- 毕业设计选课系统毕业设计选课系统
- .net计件工资管理程序 啊
- powerdatagrid控件 源码
- aspose-cells-8.6.1最新完美破解版无水印
- web开发舔狗日记 框架bootstrap
- 《WCF服务编程(第三版)》.pdf
- 初学Visual Basic 2010代码
- 网上购物商城系统完整版
- css3绘制可爱卡通脸部表情特效
- js+css3猫头鹰眼睛跟随鼠标指针转动动
- css3图片放大缩小切换幻灯片效果
- CSS3彩色柱状阶梯波浪动画特效
- CSS权威指南中文第三版高清完整.pdf版
- 在线直播教育平台网站模板完整代码
- 漫言阁个人博客 V3.0 全功能版
- 藏区旅途,一个介绍西藏旅途的网页
- 政府门户网站管理系统+新宽屏版源码
- 超赞CSS3特效集合-28个
- CSS3新年贺卡音乐播放
- 公司产品分类报价管理系统CPLS v2.5.
- canvas背景效果
- AutoMapper的使用
- FireFox浏览器和IE浏览器下CSS兼容问题
评论
共有 条评论