freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

在線考試系統(tǒng)_c高級開發(fā)實訓(xùn)報告-文庫吧資料

2025-07-12 14:02本頁面
  

【正文】 protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e){ string alert = =function(){confirm(39。 i++){ ListItem item = new ListItem(list[i].(), list[i].())。 for (int i = 0。 Course course = new Course()。 = userName。 string userName = (userId)。 if (!IsPostBack){ if (Session[userID] == null){ ()。 其效果如下圖所示: 圖 55:試題基本信息 該頁面用到的主要控件如 下 表所示: 徐州工業(yè)職業(yè)技術(shù)學(xué)院 C高級開發(fā)實訓(xùn)說明書 21 表 53: 試題管理界面用到的主要控件 控件類型 控件 ID 主要屬性設(shè)置 用途 UpdatePanel ddlCourse 無 輸入查詢關(guān)鍵字 Label Label2 ForeColor 屬性設(shè)置為“ Red “ 顯示信息 GridView GridView1 DataSourceIDea 屬性 設(shè)置為 SqlDataSource1 顯示所有試題信息及查詢結(jié)果 當(dāng)此頁面加載時,從數(shù)據(jù)庫中檢索出所有的試題信息,顯示在 GridView 控件上。 管理員 登錄此模塊后即可在后臺對試題進行添加、修改和刪除,并且可以查看考試結(jié)果。} protected void Timer1_Tick(object sender, EventArgs e){ NewMethod()。()。試卷提交成功 !39。 (Que)。 + () + 39。 + str + 39。 + labeQ + 39。 + id + 39。問答題 39。 + paperid + 39。 + UserId + 39。 str = ((TextBox)(TextBox2)).()。 string id = (string)。 } string labeQ = 。)。,39。,39。,39。,39。,39。,39。 string Fill = insert into UserAnswer(UserID,PaperID,Type,TitleID,Mark,UserAnswer,ExamTime) values(39。 string str = 。//填空分?jǐn)?shù) foreach (RepeaterItem item in ){ HiddenField titleId = (titleId) as HiddenField。 (Judge)。 + () + 39。 + str + 39。 + labeJ + 39。 + id + 39。判斷題 39。 + paperid + 39。 + UserId + 39。} else if (((RadioButton)(rbB)).Checked) { str = (false)。 string str = (false)。//判斷分?jǐn)?shù) foreach (RepeaterItem item in ){ HiddenField titleId = (titleId) as HiddenField。 徐州工業(yè)職業(yè)技術(shù)學(xué)院 C高級開發(fā)實訓(xùn)說明書 19 (Multi)。 + () + 39。 + str + 39。 + labeM + 39。 + id + 39。多選題 39。 + paperid + 39。 + UserId + 39。} if (((CheckBox)(CheckBox4)).Checked){ str += D。 } if (((CheckBox)(CheckBox2)).Checked){ str += B。 string str = 。//多選分?jǐn)?shù) foreach (RepeaterItem item in ){ HiddenField titleId = (titleId) as HiddenField。 (single)。 + () + 39。 + str + 39。 + Label + 39。 + id + 39。單選題 39。 + paperid + 39。 + UserId + 39。} else if (((RadioButton)(rbD)).Checked){ str = D。} else if (((RadioButton)(rbB)).Checked){ str = B。 string str = 。 foreach (RepeaterItem item in ){ HiddenField titleId = (titleId) as HiddenField。 string UserId = Session[userID].ToString()。} private void NewMethod(){ string Label = 。 break。} 徐州工業(yè)職業(yè)技術(shù)學(xué)院 C高級開發(fā)實訓(xùn)說明書 18 IEnumerable list4 = ()。 foreach (DataRowView o in list3){ = o[0].ToString()。 break。} IEnumerable list2 = ()。 foreach (DataRowView o in list1){ = o[0].ToString()。 break。}}} private void GetParperAll(){ IEnumerable list = ()。 = Session[PaperName].ToString()。 Label i1 = (Label)(labUser)。} else{ string userId = Session[userID].ToString()。 ( 3)實現(xiàn)代碼如下: protected int singeCount = 1。 徐州工業(yè)職業(yè)技術(shù)學(xué)院 C高級開發(fā)實訓(xùn)說明書 16 圖 52: 隨機抽取試題 (2)實現(xiàn)過程: 在隨機抽取試題之前,考生要選擇考試的科目,然后根據(jù)選擇的科目隨機從數(shù)據(jù)庫中抽取試題,所以考生選擇考試科目是隨機抽取試題的條件,其運行結(jié)果如圖所示: 圖 53: 選擇考試科目 新建一個網(wǎng)頁,命名為 ,作為抽取試題頁面及考試頁面。比較合理的做法是將所有試題信息存儲在數(shù)據(jù)庫中,然后隨機抽取若干道試題,動態(tài)地顯示在頁面當(dāng)中。 (cookie)。 if (){ = 。}} else { = 該用戶不存在! 。//存儲用戶編號 ()。} else{ CreateCookie()。 bool success = (ref u)。 = usersId。 string pwdMd5 = ((), MD5).ToString()。 } catch (Exception) { = 。 if (!IsPostBack){ try{ HttpCookie readcookie = [UsersID]。主要控件如表 7 所示: 表 51: 登錄界面用到的主要控件 控件類型 控件 ID 主要屬性設(shè)置 用途 TextBox txtUserID 無 輸入登錄用戶名 txtPwd TextModed 屬性設(shè)置為 Password 輸入登錄用戶密碼 CheckBox cbxRemeberUser Checked 屬性 設(shè)置為 True 記住用戶名 RequiredFieldValidator RequiredFieldValidator1 Controltovalidate 屬性 設(shè)置為 txtUserID 進行驗證 RequiredFieldValidator2 Controltovalidate 屬性 設(shè)置為 txtPwd 進行驗證 Button btlogin Text 屬性 設(shè)置為“登錄” 登錄 btconcel Text 屬性設(shè)置為“取消” 取消 輸入賬號和密碼等信息確認無誤后,單機“登錄“進行登錄。} 五.完成的主要功能 1:登錄模塊設(shè)計 (1)系統(tǒng)默認是不允許匿名登錄的,只有使用管理員分配的賬號和密碼才能登錄在線考試系統(tǒng)參加考試,這時就需要通過登錄模塊驗證登錄用戶的合法性。 SqlConnection conn = new SqlConnection(connStr)。 return list。 } ()。 = (dr[JudgeTime])。 = (dr[Score])。 = 。 = dr[UserID].ToString()。 Scores scores = new Scores()。 ListScores list = new ListScores()。 ()。 SqlCommand cmd = ()。具體代碼如下: public class UserService{ 徐州工業(yè)職業(yè)技術(shù)學(xué)院 C高級開發(fā)實訓(xùn)說明書 13 public ListScores SelectAll(string PaperID){ using (SqlConnection conn = ()){ string sql = select ID,PaperID,Score,ExamTime,JudgeTime, from Score,Users where = and PaperID=39。 表 1: 管理員用戶表 字段名 數(shù)據(jù)類型 是否為空 約束 備注 UserID varchar(50) 否 主鍵 編號 UserName varchar(50) 是 管理員 姓名 UserPwd varchar(64) 是 管理員登錄密碼 RoleId int 是 角色 問答題信息表 系統(tǒng)編號 課程編號 試題正確答案 試題題目 多選題信息表 系統(tǒng)編號 課程編號 試題題目 試題正確答案 試題答案 D 試題答案 C 試題答案 A 試題答案 B 徐州工業(yè)職業(yè)技術(shù)學(xué)院 C高級開發(fā)實訓(xùn)說明書 10 表 2: 考試科目信息表 字段名 數(shù)據(jù)類型 是否允許 約束 備注 ID int 否 主鍵 系統(tǒng) 編號 Name varchar(200) 是 考試科目名稱 表 3: 考試成績信息表 字段名 數(shù)據(jù)類型 是否為空 約束 備注 ID Int 否 主鍵 系統(tǒng) 編號 UserID varchar(50) 是 參加考試的考生編號 PaperID Int 是 考試科目 編號 Score Int 是 考生得分 ExamTime datetime 是 參加考試的 時間 JudgeTime datetime 是 考試 剩余時間 表 4: 試卷類型信息表 字段名 數(shù)據(jù)類型 是否為空 約束 備注 PaperID Int 否 主鍵 系統(tǒng) 編號 C
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1