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

正文內(nèi)容

[精品]基于aspnet的英語在線學(xué)習(xí)與測試系統(tǒng)平臺的實(shí)現(xiàn)[,精品論文]-資料下載頁

2024-12-06 02:54本頁面

【導(dǎo)讀】本文介紹了一個在線學(xué)習(xí)軟件系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)。習(xí)資料和測試試題等功能。學(xué)習(xí)與測試系統(tǒng)的需求進(jìn)行了分析,提出了本系統(tǒng)的總體設(shè)計(jì)目標(biāo)。隨后,本文著重描述了系統(tǒng)核心功能模塊的實(shí)現(xiàn)過程中。所使用的主要技術(shù)手段。最后,本文總結(jié)了該系統(tǒng)在開發(fā)過程中遇到的一。些難題及對策做了介紹。為用戶提供了大量的學(xué)習(xí)資料以及考試內(nèi)容。

  

【正文】 try { ()。 ()。 ()。 } catch (SqlException ex) { (())。 } ()。 //刪除 string sqlText = (。 for (int i = 0。 i 。 i++) { CheckBox checkbox = (CheckBox)[i].FindControl(CheckBox1)。 if ( == true) { sqlText = sqlText + ([i].Value) + ,。 } } sqlText = (0, 1) + )。 sqlText = delete 學(xué)習(xí)資料管理表 where id in + sqlText。 try { //執(zhí)行刪除語句 string strconn = gs[mysystemConnectionString].ToString()。 SqlConnection = new SqlConnection(strconn)。 ()。 SqlCommand cmd = new SqlCommand(sqlText, )。 ()。 ()。 } catch (Exception ex) { //若有錯誤發(fā)生,輸出錯誤信息 ()。 } ()。 在線學(xué)習(xí) 在線學(xué)習(xí)模塊 (如圖 所示) 主要完成的功能是給若干詞匯加注釋,為了內(nèi)容豐富,我將學(xué)習(xí)內(nèi)容分成詞匯、語法、閱讀,其他資源里包括的內(nèi)容是管理員在線編輯后的內(nèi)容,學(xué)生可以隨意的選擇,這樣也和在線編輯模塊很好的聯(lián)系起來了。為了不單凋,我在每個頁面加了背景音樂 。 圖 在線學(xué)習(xí) 在線測試 在線測試模塊 (如圖 所示) 是本系統(tǒng)的重點(diǎn)之 一,在該模塊我設(shè)置了完整的模擬測試,分別用了三個控件從數(shù)據(jù)庫中取得題目,每個控件都完成了兩件事:第一,將數(shù)據(jù)顯示到頁面;第二,取到每個題對應(yīng)的答案,存到另一個表中備用。題目下面接著是答題卡,分別用了三個控件與題目對應(yīng)。學(xué)生選擇了答案后,系統(tǒng)將其結(jié)果和正確答案比較,如果正確則進(jìn)行加分。每個題提交后,將每題的分?jǐn)?shù)存到數(shù)據(jù)庫中,在數(shù)據(jù)庫中算總分,并顯示。 界面 圖 在線測試 代碼 //從數(shù)據(jù)庫中取題組卷 protected void Page_Load(object sender, EventArgs e) { string sConn = Data Source=(local)。database=mysystem。Integrated Security=True。 SqlConnection myCn = new SqlConnection(sConn)。 try { ()。 String s = 。 SqlDataAdapter sda = new SqlDataAdapter(select top 3 * from tb_chance , myCn)。 DataSet ds = new DataSet(ds)。 (ds, tb_chance)。 DataTable dt = [tb_chance]。 DataTable dt1 = new DataTable(tb_chance_copying)。 (result)。 for (int i = 0。 i 。 i++) { DataRow dr = ()。 s = [i][result].ToString()。 dr[0] = s。 (dr)。 } Session[tb_chance_copying] = dt1。 = [tb_chance].DefaultView。 ()。 } catch (SqlException se) { ()。 } finally { ()。 } } //測試并打分 DataTable table = new DataTable()。 table = Session[tb_chance_copying] as DataTable。 int count4 = 0。 for (int i = 0。 i 。 i++) { RadioButtonList rb1 = (RadioButtonList)[i].Cells[0].FindControl(memType)。 if (().Equals([i][result].ToString())) { count4++。 } } count4 = count4 * 5。 = ()。 //把得分寫入數(shù)據(jù)庫 string strconn = gs[mysystemConnectionString].ToString()。 string sqlstr2 = update 得分表 set xuanze=39。+count4 +39。 SqlConnection sqlcon2 = new SqlConnection(strconn)。 SqlCommand 2 = new SqlCommand(sqlstr2, sqlcon2)。 try { ()。 string rel = null。 if (() != null) { rel = ().ToString()。 } ()。 } catch (SqlException ex) { ()。 } 測試資料管理 測試資料管理 (如圖 所示) 和學(xué)習(xí)資料管理的功能是類似的,只是把編輯試題的模塊提取出來成為獨(dú)立的模塊了。 圖 測試資料管理 在線編輯 在線編輯模塊 (如圖 所示) 是該系統(tǒng)最為重點(diǎn)的部分,在這個模塊中我使用了最流行、最完善的在線編輯器 ,編輯器幾乎提供了我需要的全部功能,其中有復(fù)制,粘貼,出入圖片等。由于系統(tǒng)需要將編輯好的內(nèi)容存到數(shù)據(jù)庫中,我就添加了擴(kuò)展功能“保存”,在保存的過程中我需要將編輯區(qū)的內(nèi)容提取出來,這是個難點(diǎn),包括圖片的處理。經(jīng)過查詢,該控件可以將編輯區(qū)中的內(nèi)容以 html 文本的格式提取,那么就不用分離圖片,轉(zhuǎn)化格式等,存到數(shù)據(jù)庫中的就是路徑而已。為了功能完善,又添加了“打開”、“新建”這些簡單的功能,不再贅述。 界面 圖 在線編輯 代碼 //保存 string st = 。 (\r\n, )。 //string mystr = (\r\n,)。 string strconn = gs[mysystemConnectionString].ToString()。 string sqlstr2 = insert into news(content) values(39。 + st + 39。)。 SqlConnection sqlcon2 = new SqlConnection(strconn)。 SqlCommand 3 = new SqlCommand(sqlstr2, sqlcon2)。 try { ()。 string rel = null。 if (() != null) { rel = ().ToString()。 } ()。 } catch (SqlException ex) { ()。 } //打開 string sqlText = (。 for (int i = 0。 i 。 i++) { CheckBox checkbox = (CheckBox)[i].FindControl(CheckBox1)。 if ( == true) { sqlText = sqlText + ([i].Value) + ,。 } } sqlText = (0, 1) + )。 sqlText = select content from news where id in + sqlText。 try { string strconn = gs[mysystemConnectionString].ToString()。 SqlConnection = new SqlConnection(strconn)。 ()。 SqlCommand cmd = new S = (0)。qlCommand(sqlText, )。 SqlDataReader myreader = ()。 while (()) { } ()。 ()。 } catch (Exception ex) { //若有錯誤發(fā)生,輸出錯誤信息 ()。 } for (int j = 0。 j 。 j++) { CheckBox checkbox = (CheckBox)[j].FindControl(CheckBox1)。 = false。 } 1. 在線編輯試題內(nèi)容的提取與保存 在線編輯模塊是系統(tǒng)的重點(diǎn),在該模塊中我選用了功能比較完善的freetextbox 在線編輯控件,它幾乎提供了我所需要的全部功能,但根據(jù)我的需要,要把編輯好的內(nèi)容存到數(shù)據(jù)庫中,而該控件只提供了將編輯內(nèi)容顯示在當(dāng)前頁面,沒有與數(shù)據(jù)庫交互,在存到數(shù)據(jù)庫中之前,要把編輯區(qū)的內(nèi)容提取出來,這是
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1