91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 923KB
    文件類型: .zip
    金幣: 2
    下載: 2 次
    發布日期: 2021-06-28
  • 語言: C#
  • 標簽: 題庫管理??C#??asp.net??

資源簡介

簡單的題庫管理系統在、可實現對試卷的增刪改查界面很漂亮!

資源截圖

代碼片段和文件信息

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(“server=(local);uid=sa;pwd=123456;database=examonline“);
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();
}
}
}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-04-13?16:14??simpleExam\
?????目錄???????????0??2007-10-31?15:41??simpleExam\App_Code\
?????文件????????2115??2007-10-21?17:22??simpleExam\App_Code\AssemblyInfo.cs
?????文件????????1556??2007-10-21?17:22??simpleExam\App_Code\Global.asax.cs
?????目錄???????????0??2007-10-31?15:41??simpleExam\DB_51aspx\
?????文件?????2031616??2011-04-13?16:13??simpleExam\DB_51aspx\examonline_Data.MDF
?????文件?????3932160??2011-04-13?16:13??simpleExam\DB_51aspx\examonline_Log.LDF
?????文件?????????528??2007-11-06?09:21??simpleExam\Default.aspx
?????文件?????????409??2007-10-21?17:26??simpleExam\Default.aspx.cs
?????文件??????????63??2007-10-21?17:22??simpleExam\Global.asax
?????文件????????1733??2002-01-29?22:04??simpleExam\Global.asax.resx
?????文件????????4232??2007-11-06?09:01??simpleExam\Web.config
?????文件????????5050??2007-10-21?17:22??simpleExam\adminpwd.aspx
?????文件????????2468??2011-04-13?15:44??simpleExam\adminpwd.aspx.cs
?????文件????????5317??2007-04-16?03:39??simpleExam\adminpwd.aspx.resx
?????目錄???????????0??2011-04-13?16:14??simpleExam\bin\
?????文件?????????410??2002-12-30?01:40??simpleExam\chinaz.com.txt
?????文件????????6927??2007-10-21?17:22??simpleExam\createexam.aspx
?????文件????????7341??2011-04-13?16:05??simpleExam\createexam.aspx.cs
?????文件????????5317??2007-04-18?20:43??simpleExam\createexam.aspx.resx
?????文件????????1717??2007-10-21?17:22??simpleExam\examonline.sln
?????文件????????4495??2007-11-06?09:22??simpleExam\help.aspx
?????文件?????????964??2007-10-21?17:22??simpleExam\help.aspx.cs
?????文件????????5317??2007-04-16?23:54??simpleExam\help.aspx.resx
?????目錄???????????0??2011-04-13?16:09??simpleExam\images\
?????文件???????34975??2007-04-15?10:45??simpleExam\images\054.SWF
?????文件???????50176??2011-04-13?16:09??simpleExam\images\Thumbs.db
?????文件?????????356??2003-03-18?15:37??simpleExam\images\bg1222.jpg
?????文件?????????354??2003-03-18?15:37??simpleExam\images\bg1223.jpg
?????文件?????????152??2003-03-19?20:50??simpleExam\images\copyright.gif
?????文件?????????220??2003-03-19?20:50??simpleExam\images\footer.gif
............此處省略18個文件信息

評論

共有 條評論