• 大小: 1.1MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-28
  • 语言: C#
  • 标签: ASP.NET  

资源简介

基于SQLSERVER2012和VS2012开发的学生管理系统

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Configuration;
using System.Collections;
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 Student.Model;
using Student.Logic;
namespace Library
{
    public partial class login : System.Web.UI.Page
    {
        protected void Page_Load(object sender EventArgs e)
        {
            if (!IsPostBack)
            {
                this.Button1.Attributes[“onclick“] = “return check();“;
            }

        }
        protected void Button1_Click(object sender EventArgs e)
        {
            /*取得帐号密码信息*/
            string userName = this.txtName.Text;
            string password = this.txtPwd.Text;
            string identify = this.Identify.SelectedValue;
            if (“管理员“ == identify)
            {
                AdminModel adminModel = new AdminModel();
                adminModel.AdminUsername = userName;
                adminModel.AdminPassword = password;
                AdminLogic adminLogic = new AdminLogic();
                /*如果管理员帐号信息正确*/
                if (adminLogic.IsExistAdminInfo(adminModel))
                {
                    Session[“adminFlag“] = true;
                    Session[“adminUsername“] = userName;
                    Response.Redirect(“Admin/index.aspx“);
                }
                /*如果管理员帐号信息不正确*/
                else
                {
                    Response.Write(“ript>alert(‘“ + adminLogic.ErrMessage + “‘);ript>“);
                }
            }
            else
            {
                StudentModel student = new StudentModel();
                student.setStudentNumber(this.txtName.Text);
                student.setStudentPassword(this.txtPwd.Text);
                StudentLogic studentLogic = new StudentLogic();
                /*如果学生帐号信息正确*/
                if (studentLogic.IsExistStudentInfo(student))
                {
                    Session[“studentFlag“] = true;
                    Session[“studentNumber“] = userName;
                    Response.Redirect(“Score/scoreResult.aspx“);
                }
                /*如果管理员帐号信息不正确*/
                else
                {
                    Response.Write(“ript>alert(‘“ + studentLogic.getErrMessage() + “‘);ript>“);
                }
            }

        }
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2708  2014-11-30 23:41  Manage\Manage\about.html

     文件       2301  2012-06-02 05:12  Manage\Manage\Admin\changePassword.aspx

     文件       1310  2012-06-02 19:36  Manage\Manage\Admin\changePassword.aspx.cs

     文件       1937  2014-12-01 11:03  Manage\Manage\Admin\index.aspx

     文件        412  2012-06-04 00:05  Manage\Manage\Admin\index.aspx.cs

     文件       7297  2012-06-06 03:52  Manage\Manage\Admin\seltime.aspx

     文件       4460  2012-06-10 22:23  Manage\Manage\App_Code\DB\Common.cs

     文件       5722  2012-06-10 20:45  Manage\Manage\App_Code\DB\Database.cs

     文件       1732  2012-06-03 18:14  Manage\Manage\App_Code\DB\Logger.cs

     文件       2272  2012-06-10 13:04  Manage\Manage\App_Code\Logic\AdminLogic.cs

     文件       3963  2012-06-08 01:10  Manage\Manage\App_Code\Logic\ClassCourseLogic.cs

     文件       2734  2012-06-03 15:27  Manage\Manage\App_Code\Logic\ClassLogic.cs

     文件       4327  2012-06-03 09:18  Manage\Manage\App_Code\Logic\MoneyLogic.cs

     文件       7915  2012-06-01 19:35  Manage\Manage\App_Code\Logic\ScoreLogic.cs

     文件       6585  2012-06-03 23:59  Manage\Manage\App_Code\Logic\StudentLogic.cs

     文件       3606  2012-06-05 07:29  Manage\Manage\App_Code\Logic\XuefeiLogic.cs

     文件       1264  2012-06-10 15:32  Manage\Manage\App_Code\Model\AdminModel.cs

     文件       1803  2012-06-05 19:03  Manage\Manage\App_Code\Model\ClassCourseModel.cs

     文件       2634  2012-06-07 11:25  Manage\Manage\App_Code\Model\ClassModel.cs

     文件       2396  2012-06-07 05:56  Manage\Manage\App_Code\Model\MoneyModel.cs

     文件       3217  2012-06-05 11:46  Manage\Manage\App_Code\Model\ScoreModel.cs

     文件       4149  2012-06-10 02:40  Manage\Manage\App_Code\Model\StudentModel.cs

     文件       1594  2012-06-09 19:51  Manage\Manage\App_Code\Model\XuefeiModel.cs

     文件       4096  2014-12-01 10:45  Manage\Manage\bin\Manage.dll

     文件       7680  2014-12-01 10:45  Manage\Manage\bin\Manage.pdb

     文件       3036  2012-06-11 05:47  Manage\Manage\Class\classAdd.aspx

     文件       1815  2012-06-05 02:47  Manage\Manage\Class\classAdd.aspx.cs

     文件       4024  2012-06-02 09:41  Manage\Manage\Class\classQuery.aspx

     文件       1895  2012-06-06 03:20  Manage\Manage\Class\classQuery.aspx.cs

     文件       1638  2012-06-03 06:36  Manage\Manage\Course\classCourseUpdate.aspx

............此处省略99个文件信息

评论

共有 条评论