• 大小: 346KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-05-28
  • 语言: 数据库
  • 标签: .net  

资源简介

.net学生管理系统

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebStudent
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender EventArgs e)
        {

        }
        //登录按钮
        protected void btnLogin_Click(object sender EventArgs e)
        {
            string strUserName = txtUserName.Text.Trim();
            string strPassword = txtPassword.Text.Trim();

            Code.VerifyLogin db = new Code.VerifyLogin();

            if (db.Login(strUserName strPassword))
            {
                HttpCookie cookie =new HttpCookie(“user“);
                cookie[“UserName“] = strUserName;
                Response.AppendCookie(cookie);
                Response.Redirect(“~/Frm/Main.aspx“);
               
            }
            else
            {
                Code.Common.ShowMessage(this “用户名或密码错误“);
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-06-06 11:03  StudentManage\
     目录           0  2015-06-16 11:23  StudentManage\DB\
     文件     1593856  2015-05-28 14:32  StudentManage\DB\SS.bak
     文件        2462  2015-05-28 14:31  StudentManage\DB\SS.sql
     目录           0  2016-06-06 11:03  StudentManage\StudentManage\
     目录           0  2015-06-16 14:43  StudentManage\StudentManage\bin\
     文件       20480  2016-06-06 08:57  StudentManage\StudentManage\bin\WebStudent.dll
     文件       67072  2016-06-06 08:57  StudentManage\StudentManage\bin\WebStudent.pdb
     目录           0  2015-06-16 11:23  StudentManage\StudentManage\Code\
     文件        1386  2015-05-28 10:47  StudentManage\StudentManage\Code\Common.cs
     文件         451  2015-05-28 14:37  StudentManage\StudentManage\Code\Config.cs
     文件         454  2015-05-28 09:54  StudentManage\StudentManage\Code\Student.cs
     文件        6063  2015-05-28 11:22  StudentManage\StudentManage\Code\StudentManage.cs
     文件        6718  2015-05-28 13:30  StudentManage\StudentManage\Code\UserManage.cs
     文件         407  2015-05-28 09:53  StudentManage\StudentManage\Code\Users.cs
     文件         916  2015-05-28 11:39  StudentManage\StudentManage\Code\VerifyLogin.cs
     目录           0  2015-06-16 11:23  StudentManage\StudentManage\Css\
     文件        3840  2015-05-28 14:17  StudentManage\StudentManage\Css\layout.css
     文件        1214  2015-05-28 14:12  StudentManage\StudentManage\Css\login.css
     文件        1336  2015-05-28 11:34  StudentManage\StudentManage\Default.aspx
     文件        1091  2016-05-30 16:46  StudentManage\StudentManage\Default.aspx.cs
     文件        1845  2015-05-28 11:32  StudentManage\StudentManage\Default.aspx.designer.cs
     目录           0  2015-06-16 11:23  StudentManage\StudentManage\Frm\
     文件         672  2015-05-28 14:01  StudentManage\StudentManage\Frm\Main.aspx
     文件         507  2016-05-30 16:47  StudentManage\StudentManage\Frm\Main.aspx.cs
     文件         814  2015-05-28 14:01  StudentManage\StudentManage\Frm\Main.aspx.designer.cs
     文件        2049  2015-05-28 11:14  StudentManage\StudentManage\Frm\StudentInfo.aspx
     文件        4254  2015-05-28 11:18  StudentManage\StudentManage\Frm\StudentInfo.aspx.cs
     文件        2895  2015-05-28 11:14  StudentManage\StudentManage\Frm\StudentInfo.aspx.designer.cs
     文件        2744  2015-05-28 11:11  StudentManage\StudentManage\Frm\StudentManage.aspx
     文件        2493  2015-05-28 11:12  StudentManage\StudentManage\Frm\StudentManage.aspx.cs
............此处省略32个文件信息

评论

共有 条评论