基于web程序設(shè)計(jì)練習(xí)題_第1頁
基于web程序設(shè)計(jì)練習(xí)題_第2頁
基于web程序設(shè)計(jì)練習(xí)題_第3頁
基于web程序設(shè)計(jì)練習(xí)題_第4頁
基于web程序設(shè)計(jì)練習(xí)題_第5頁
已閱讀5頁,還剩120頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、.基于Web程序設(shè)計(jì)練習(xí)題一一、HTML代碼分析1. 根據(jù)網(wǎng)頁截圖效果補(bǔ)充代碼。(5分) _1_ 2. 根據(jù)網(wǎng)頁截圖效果補(bǔ)充代碼。(10分) male Female car I have a apple I have a orange 3. 根據(jù)網(wǎng)頁截圖效果補(bǔ)充代碼。(5分) row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2 二、數(shù)據(jù)庫基礎(chǔ)代碼分析1. 解釋代碼:請解釋下述代碼的含義。(5分)INSERT INTO article ( title, writer, content )VALUES (實(shí)驗(yàn), 學(xué)生, 插入數(shù)據(jù));2.

2、解釋代碼:請解釋下述代碼的含義。(5分)SELECT *FROM articleWHERE 編號=1;3. 解釋代碼:請解釋下述代碼的含義。(5分)UPDATE article SET content = 修改WHERE 編號=1;4. 解釋代碼:請解釋下述代碼的含義。(5分)DELETE *FROM articleWHERE 編號=1;三、標(biāo)準(zhǔn)控件代碼分析1. 解釋代碼:請解釋下述代碼的含義。(10分)ButtonEx.aspx : 無標(biāo)題頁 -ButtonEx.vb :Partial Class _Default Inherits System.Web.UI.Page Protected

3、Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Response.Write(通過按鈕的Click事件觸發(fā)后顯示!) End Sub Protected Sub Button1_Command(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Button1.Command Label1.Text = Label1.Text + 1 E

4、nd SubEnd Class2. 解釋代碼:請解釋下述代碼的含義。(10分)DropDownList.aspx : 無標(biāo)題頁 Item1 Item2 Item3 -DropDownList.vb :Partial Class _Default Inherits System.Web.UI.Page Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged Labe

5、l1.Text = DropDownList1.SelectedItem.Value.ToString() End SubEnd Class-3. 解釋代碼:請解釋下述代碼的含義。(10分)RadioButtonListEx.aspx : 無標(biāo)題頁 Item1 Item2 Item3 -RadioButtonListEx.vb :Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handle

6、s Me.Load End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click If RadioButtonList1.SelectedIndex = 0 Then Label1.Text = 1 End If If RadioButtonList1.SelectedIndex = 1 Then Label1.Text = 2 End If密封線 If RadioButtonList1.SelectedIndex = 2 Then L

7、abel1.Text = 3 End If End SubEnd Class4. 解釋代碼:請解釋下述代碼的含義。(10分)CalendarEx.aspx : 無標(biāo)題頁   密封線-CalendarEx.vb :Partial Class _Default Inherits System.Web.UI.Page Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged Label1.Te

8、xt = Calendar1.SelectedDate.ToShortDateString() End SubEnd Class四、網(wǎng)絡(luò)基礎(chǔ)名詞解釋1. 請解釋如圖所示模型的含義。(5分)2. 請解釋如圖所示模型的含義。(5分)3. 請給出網(wǎng)絡(luò)工具ipconfig的作用。(5分) (題1 圖) 4. 請解釋如圖所示模型的含義。(5分)五、站點(diǎn)開發(fā)控件代碼分析1. 解釋代碼:請解釋下述代碼的含義。(10分)CompareValidatorEx.aspx : 無標(biāo)題頁 結(jié)束時間必需大于開始時間 -CompareValidatorEx.vb :Partial Class _Default Inher

9、its System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click CompareValidator1.Validate() If (CompareValidator1.IsValid = True) Then Response.Write(通過檢驗(yàn)) End If End SubEnd Class2. 解釋代碼:請解釋下述代碼的含義。(10分)SiteMapPathEx.master : 無標(biāo)題頁 -SiteM

10、apPathEx.sitemap : -SiteMapPathEx_Default2.aspx : 轉(zhuǎn)至個人信息頁面-SiteMapPathEx_Default3.aspx :3. 解釋代碼:請解釋下述代碼的含義。(10分)TreeViewEx.aspx :-TreeViewEx.master : 無標(biāo)題頁   -TreeViewEx.sitemap : 4. 解釋代碼:請解釋下述代碼的含義。(10分)ValidationSummaryEx.aspx : 無標(biāo)題頁 -ValidationSummaryEx.vb :Partial Class _Default Inherits Sys

11、tem.Web.UI.PageEnd Class5. 解釋代碼:請解釋下述代碼的含義。(10分)CustomValidatorEx.aspx : 無標(biāo)題頁 不是偶數(shù) -CustomValidatorEx.vb :Partial Class _Default Inherits System.Web.UI.Page Protected Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles

12、CustomValidator1.ServerValidate Dim i As Integer i = Integer.Parse(args.Value) If i Mod 2 = 0 Then args.IsValid = True Else args.IsValid = False End If End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click CustomValidator1.Validate() If (Custo

13、mValidator1.IsValid = True) Then Response.Write(通過檢驗(yàn)) End If End SubEnd Class6. 解釋代碼:請解釋下述代碼的含義。(10分)LoginEx.aspx : 無標(biāo)題頁   -LoginEx.vb :Partial Class _Default Inherits System.Web.UI.Page Protected Sub Login1_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateE

14、ventArgs) Handles Login1.Authenticate End SubEnd Class六、內(nèi)建組建對象代碼分析1. 解釋代碼:請解釋下述代碼的含義。(10分)Application.aspx : 無標(biāo)題頁 -Application.vb :密封線Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Application(times) = N

15、ow() Response.Write(訪問時間為: + Application(times) End SubEnd Class2. 解釋代碼:請解釋下述代碼的含義。(10分)responseredirect.aspx :密封線 無標(biāo)題頁 -responseredirect.vb :Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Response.Redirect(); End SubEnd Class3. 解釋代碼:請解釋下述代碼的含義。(10分)responsewrite.aspx : 無標(biāo)題頁 -responsewrite.

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論