資源簡介
該系統主要分為以下幾個功能模塊:再線考試模塊(生成試卷,試題管理),在線練習模塊(再線復習,上傳作業等),班級管理模塊,學生管理等,分為不同的權限.
環境:windows xp/2003
數據庫:SQLServer 2005

代碼片段和文件信息
using?System;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Web;
using?System.Web.SessionState;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.HtmlControls;
namespace?TestOnline
{
///?
///?admin?的摘要說明。
///?
public?partial?class?admin?:?System.Web.UI.Page
{
protected?void?Page_Load(object?sender?System.EventArgs?e)
{
//?在此處放置用戶代碼以初始化頁面
if(Session[“adminId“]==null)
{Response.Redirect(“login.aspx“);
}
}
#region?Web?窗體設計器生成的代碼
override?protected?void?OnInit(EventArgs?e)
{
//
//?CODEGEN:?該調用是?ASP.NET?Web?窗體設計器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
///?
///?設計器支持所需的方法?-?不要使用代碼編輯器修改
///?此方法的內容。
///?
private?void?InitializeComponent()
{????
this.Ibtn_ok.Click?+=?new?System.Web.UI.ImageClickEventHandler(this.Ibtn_ok_Click);
}
#endregion
private?void?Ibtn_ok_Click(object?sender?System.Web.UI.ImageClickEventArgs?e)
{
string?adminId=Convert.ToString(Session[“adminId“]);
string?adminPwd=tbx_oldPwd.Text.Trim();
string?newPwd1=tbx_newPwd1.Text.Trim();
string?newPwd2=tbx_newPwd2.Text.Trim();
if(newPwd1==““||newPwd2==““)
Response.Write(“ript>alert(\“密碼不能為空\“); ript>“);
else
{
int?count=(new?projClass()).getAdmin(adminIdadminPwd);
if(count==0)
{
Response.Write(“ript>alert(\“密碼錯誤!請重新輸入\“); ript>“);
}
else
{
if(!newPwd1.Equals(newPwd2))
Response.Write(“ript>alert(\“兩次密碼不一致!請重新輸入!\“); ript>“);
else
{
int?count1=(new?projClass()).updateAdminPwd(adminIdnewPwd1);
if(count1==1)
Response.Write(“ript>alert(\“密碼修改成功!\“); ript>“);
else??Response.Write(“ript>alert(\“更新失敗!\“); ript>“);
}
}
}
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1934??2007-03-25?10:45??學生在線考試系統\51aspx源碼必讀.txt
?????文件???????1717??2007-03-25?10:42??學生在線考試系統\about.html
?????文件???????1285??2009-08-03?18:03??學生在線考試系統\admin.aspx
?????文件???????2063??2009-08-03?18:03??學生在線考試系統\admin.aspx.cs
?????文件???????5317??2006-02-22?16:36??學生在線考試系統\admin.aspx.resx
?????文件???????1635??2006-02-26?14:51??學生在線考試系統\adminfr
?????文件???????2926??2009-08-03?18:03??學生在線考試系統\adminInfo.aspx
?????文件???????1223??2009-08-03?18:03??學生在線考試系統\adminInfo.aspx.cs
?????文件???????2115??2009-08-03?18:03??學生在線考試系統\App_Code\AssemblyInfo.cs
?????文件???????1376??2009-08-03?18:03??學生在線考試系統\App_Code\Global.asax.cs
?????文件????????973??2009-08-03?18:03??學生在線考試系統\App_Code\Migrated\Stub_createTest_aspx_cs.cs
?????文件??????37605??2009-08-03?18:03??學生在線考試系統\App_Code\projClass.cs
?????文件????????634??2005-12-23?03:05??學生在線考試系統\btn_finish_1.gif
?????文件???????9622??2009-08-03?18:03??學生在線考試系統\ConversionReport.txt
?????文件???????3029??2009-08-03?18:03??學生在線考試系統\courseView.aspx
?????文件???????4284??2009-08-03?18:03??學生在線考試系統\courseView.aspx.cs
?????文件???????5317??2006-02-22?19:52??學生在線考試系統\courseView.aspx.resx
?????文件???????7930??2009-08-03?18:03??學生在線考試系統\createTest.aspx.cs
?????文件???????7734??2006-02-24?19:34??學生在線考試系統\createTest.aspx.cs.bak
?????文件???????5317??2006-02-19?02:45??學生在線考試系統\createTest.aspx.resx
?????文件????1310720??2009-08-05?22:37??學生在線考試系統\DB_51aspx\TestOnline_Data.MDF
?????文件????1048576??2009-08-05?22:37??學生在線考試系統\DB_51aspx\TestOnline_Log.LDF
?????文件?????????63??2009-08-03?18:03??學生在線考試系統\Global.asax
?????文件???????1733??2002-01-30?13:04??學生在線考試系統\Global.asax.resx
?????文件??????55722??2006-01-20?02:18??學生在線考試系統\images\3.jpg
?????文件??????25780??2006-01-09?00:43??學生在線考試系統\images\4_r1_c2.jpg
?????文件???????1452??2005-08-10?21:57??學生在線考試系統\images\adsf.jpg
?????文件??????28463??2006-01-07?15:14??學生在線考試系統\images\book_r1_c2.jpg
?????文件????????189??2005-12-23?03:05??學生在線考試系統\images\btn_allchoose_1.gif
?????文件????????188??2005-12-23?03:05??學生在線考試系統\images\btn_allclean_1.gif
............此處省略110個文件信息
- 上一篇:基于ASP.NET的網絡在線投票系統
- 下一篇:基于asp.net在線報名系統
評論
共有 條評論