資源簡介
一、源碼描述
本程序為學生信息管理系統。是一個簡易的ASP.NET系統,主要實現登錄功能和兩個模塊信息的增刪改查。
二、功能介紹
1、管理員信息管理:添加、修改、刪除、查找用戶信息,分頁,添加,修改用戶權限;
2、學生信息管理:添加、修改、刪除、查找學生信息,分頁,批量導入,導出,導出失敗導入項;
3、修改密碼;
4、登錄
代碼簡單,適合初學者學習和參考

代碼片段和文件信息
using?System;
using?System.Data;
using?System.Configuration;
using?System.Collections;
using?System.Collections.Generic;
using?System.Linq;
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.SqlClient;
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?=?System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text.Trim()?“MD5“).ToLower().ToString();//MD5加密
????????????string?strUserType?=?DropDownListUserType.SelectedValue.ToString().Trim();
????????????Code.VerifyLogin?db?=?new?Code.VerifyLogin();
????????????if?(db.Login(strUserName?strPassword?strUserType))
????????????{
????????????????//FormsAuthentication.SetAuthCookie(strUserName?createPersistentCookie:?false);
????????????????HttpCookie?cookie?=?new?HttpCookie(“User“);
????????????????//cookie.Value?=?strUserName;
????????????????cookie.Values[“UserName“]?=?strUserName;
????????????????cookie.Values[“UserType“]?=?strUserType;
????????????????cookie.Expires?=?System.DateTime.Now.AddDays(1);
????????????????Response.Cookies.Add(cookie);
????????????????Response.Redirect(“~/Frm/Main.aspx“);
????????????}
????????????else
????????????{
????????????????Code.Common.ShowMessage(this?“用戶名或密碼錯誤“);
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-28?17:35??Test\
?????目錄???????????0??2018-06-28?17:32??Test\.vs\
?????目錄???????????0??2018-06-28?17:32??Test\.vs\config\
?????文件???????85567??2018-04-29?18:00??Test\.vs\config\applicationhost.config
?????目錄???????????0??2018-06-28?17:32??Test\.vs\WebStudent\
?????目錄???????????0??2018-06-28?17:32??Test\.vs\WebStudent\v15\
?????文件???????84992??2018-04-30?00:25??Test\.vs\WebStudent\v15\.suo
?????目錄???????????0??2018-06-28?17:32??Test\.vs\WebStudent\v15\Server\
?????目錄???????????0??2018-06-28?17:32??Test\.vs\WebStudent\v15\Server\sqlite3\
?????文件???????????0??2018-04-29?18:00??Test\.vs\WebStudent\v15\Server\sqlite3\db.lock
?????文件??????925696??2018-04-30?00:25??Test\.vs\WebStudent\v15\Server\sqlite3\storage.ide
?????目錄???????????0??2018-06-28?17:32??Test\aspnet_client\
?????目錄???????????0??2018-06-28?17:32??Test\aspnet_client\system_web\
?????目錄???????????0??2018-06-28?17:32??Test\aspnet_client\system_web\4_0_30319\
?????目錄???????????0??2018-06-28?17:32??Test\bin\
?????文件??????200704??2018-06-22?00:26??Test\bin\ICSharpCode.SharpZipLib.dll
?????文件???????92160??2009-12-20?12:57??Test\bin\NPOI.DDF.dll
?????文件?????1679360??2018-06-22?00:26??Test\bin\NPOI.dll
?????文件???????53248??2009-12-20?13:16??Test\bin\NPOI.HPSF.dll
?????文件??????964608??2009-12-20?13:33??Test\bin\NPOI.HSSF.dll
?????文件??????536064??2018-06-22?00:26??Test\bin\NPOI.OOxm
?????文件???????91136??2018-06-22?00:26??Test\bin\NPOI.Openxm
?????文件?????2121728??2018-06-22?00:26??Test\bin\NPOI.Openxm
?????文件???????49664??2009-12-20?13:16??Test\bin\NPOI.POIFS.dll
?????文件???????39424??2009-12-20?12:57??Test\bin\NPOI.Util.dll
?????文件?????2254144??2018-06-22?00:26??Test\bin\NPOI.xm
?????文件???????51200??2018-06-28?08:37??Test\bin\WebStudent.dll
?????文件????????2322??2018-06-22?00:47??Test\bin\WebStudent.dll.config
?????文件???????95744??2018-06-28?08:37??Test\bin\WebStudent.pdb
?????目錄???????????0??2018-06-28?17:32??Test\Code\
?????文件????????1386??2015-05-28?10:47??Test\Code\Common.cs
............此處省略144個文件信息
- 上一篇:c#酒店客房管理系統
- 下一篇:C#調用百度語音識別
評論
共有 條評論