資源簡介
期末題庫管理系統源碼
為了實現提高管理部門的工作效率;充分利用資源;減少不必要的人力,物力和財力的支出;方便教師人事管理部門的工作人員全面地掌握學生等目的;為題庫管理部門,開發設計專用系統--題庫管理系統來進行管理題庫信息,使題庫實現標準化的管理和規范化的制度是十分必要的。專用系統是一個信息管理系統MIS(Management Information System)(以下就稱信息管理系統)[1],它將實現檢索迅速和查找方便;信息的錄入,修改和刪除功能。

代碼片段和文件信息
using?System;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Data.SqlClient;
using?System.Drawing;
using?System.Web;
using?System.Web.SessionState;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.HtmlControls;
using?System.Web.Security;
//該源碼下載自www.51aspx.com(51aspx.com)
namespace?examonline
{
///?
///?adminpwd?的摘要說明。
///?
public?partial?class?adminpwd?:?System.Web.UI.Page
{
protected?void?Page_Load(object?sender?System.EventArgs?e)
{
if((bool)Session[“IsLogined“]==false)
{
Response.Redirect(“index.aspx“);
}
lblmsg.Text=(string)Session[“info“];
Session[“info“]=““;
}
#region?Web?窗體設計器生成的代碼
override?protected?void?OnInit(EventArgs?e)
{
//
//?CODEGEN:?該調用是?ASP.NET?Web?窗體設計器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
///?
///?設計器支持所需的方法?-?不要使用代碼編輯器修改
///?此方法的內容。
///?
private?void?InitializeComponent()
{????
}
#endregion
protected?void?btnlogin_Click(object?sender?System.EventArgs?e)
{
string?oldpwd?=?System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(txtOldpwd.Text?“MD5“);
string?newpwd?=?System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(txtNewpwd.Text?“MD5“);
string?repwd?=?System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(txtRepwd.Text?“MD5“);
if(newpwd!=repwd)
{
Session[“info“]=“密碼確認有誤!“;
Response.Redirect(“adminpwd.aspx“);
Response.End();
}
string?sql?=?“update?[admin]?set?password=‘“+newpwd+“‘?where?username=‘“?+?txtid.Text.Trim()?+?“‘?and?password=‘“?+?oldpwd?+?“‘“;
????????????SqlConnection?cn?=?new?SqlConnection(“Data?Source=JIE-pc\\SQL2005;Initial?Catalog=examonline;Persist?Security?Info=True;User?ID=sa;Password=sa“);
SqlCommand?cmd?=?new?SqlCommand(sql?cn);
try
{
cn.Open();
int?h?=?cmd.ExecuteNonQuery();
if(h>0)
{
lblmsg.Text=“修改成功!“;
}
else
{
Session[“info“]?=?“用戶名或密碼錯誤!“;
Response.Redirect(“adminpwd.aspx“);
Response.End();
}
}
catch(SqlException?ex)
{
Session[“info“]?=?“數據庫錯誤:“?+?ex.Message.ToString();
Response.Redirect(“adminpwd.aspx“);
Response.End();
}
finally
{
cn.Close();
}
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????56698??2011-07-05?09:28??試題管理系統(短學期課程設計)\054.swf
?????文件???????5078??2011-07-05?18:33??試題管理系統(短學期課程設計)\adminpwd.aspx
?????文件???????2529??2011-07-04?22:57??試題管理系統(短學期課程設計)\adminpwd.aspx.cs
?????文件???????6503??2011-07-04?12:18??試題管理系統(短學期課程設計)\adminpwd.aspx.resx
?????文件???????2113??2011-07-04?22:57??試題管理系統(短學期課程設計)\App_Code\AssemblyInfo.cs
?????文件???????1558??2011-07-04?22:57??試題管理系統(短學期課程設計)\App_Code\Global.asax.cs
?????文件???????6805??2011-07-05?10:54??試題管理系統(短學期課程設計)\createexam.aspx
?????文件???????7418??2011-07-05?10:59??試題管理系統(短學期課程設計)\createexam.aspx.cs
?????文件???????6387??2011-07-04?12:30??試題管理系統(短學期課程設計)\createexam.aspx.resx
?????文件????????450??2011-07-04?12:20??試題管理系統(短學期課程設計)\Default.aspx
?????文件????????419??2011-07-04?12:20??試題管理系統(短學期課程設計)\Default.aspx.cs
?????文件???????1719??2011-07-04?12:21??試題管理系統(短學期課程設計)\examonline.sln
????..A..H.??????6656??2011-07-03?09:21??試題管理系統(短學期課程設計)\examonline.suo
?????文件?????????64??2011-07-04?12:21??試題管理系統(短學期課程設計)\Global.asax
?????文件???????5885??2011-07-04?12:22??試題管理系統(短學期課程設計)\Global.asax.resx
?????文件???????4399??2011-07-04?12:25??試題管理系統(短學期課程設計)\help.aspx
?????文件????????910??2011-07-04?12:36??試題管理系統(短學期課程設計)\help.aspx.cs
?????文件???????5317??2011-07-04?12:36??試題管理系統(短學期課程設計)\help.aspx.resx
?????文件??????54481??2011-07-04?11:54??試題管理系統(短學期課程設計)\images\054.SWF
?????文件????????356??2003-03-18?15:37??試題管理系統(短學期課程設計)\images\bg1222.jpg
?????文件????????354??2003-03-18?15:37??試題管理系統(短學期課程設計)\images\bg1223.jpg
?????文件????????152??2003-03-19?20:50??試題管理系統(短學期課程設計)\images\copyright.gif
?????文件????????220??2003-03-19?20:50??試題管理系統(短學期課程設計)\images\footer.gif
????..A.SH.?????46080??2007-04-02?20:13??試題管理系統(短學期課程設計)\images\Thumbs.db
?????文件??????63351??2011-07-04?11:19??試題管理系統(短學期課程設計)\images\ti
?????文件????????652??2011-07-04?12:38??試題管理系統(短學期課程設計)\img.aspx
?????文件???????2030??2011-07-05?10:43??試題管理系統(短學期課程設計)\img.aspx.cs
?????文件???????5886??2011-07-04?12:37??試題管理系統(短學期課程設計)\img.aspx.resx
?????文件???????5131??2011-07-07?18:50??試題管理系統(短學期課程設計)\index.aspx
?????文件???????2102??2011-07-05?19:42??試題管理系統(短學期課程設計)\index.aspx.cs
............此處省略21個文件信息
- 上一篇:基于PIC16F877A單片機字符液晶顯示數字時鐘
- 下一篇:數控機床課程設計說明書
評論
共有 條評論