基于Web程序设计练习题.doc

上传人:h**** 文档编号:132821 上传时间:2018-07-09 格式:DOC 页数:124 大小:1.53MB
下载 相关 举报
基于Web程序设计练习题.doc_第1页
第1页 / 共124页
基于Web程序设计练习题.doc_第2页
第2页 / 共124页
基于Web程序设计练习题.doc_第3页
第3页 / 共124页
基于Web程序设计练习题.doc_第4页
第4页 / 共124页
基于Web程序设计练习题.doc_第5页
第5页 / 共124页
点击查看更多>>
资源描述

1、 1 基于 Web 程序设计 练习题一 一、 HTML 代码分析 1. 根据网页截图效果补充代码。( 5 分) _1_ 2. 根据网页截图效果补充代码。( 10 分) male Female 2 car I have a apple I have a orange 3. 根据网页截图效果补充代码。( 5 分) row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2 二、 数据库基础代码分析 1. 解释代码:请解释下述代码的含义。( 5 分) INSERT INTO article ( title, writer, content ) VA

2、LUES (实验 , 学生 , 插入数据 ); 2. 解释代码:请解释下述代码的含义。( 5 分) SELECT * FROM article WHERE 编号 =1; 3. 解释代码 :请解释下述代码的含义。( 5 分) UPDATE article SET content = 修改 WHERE 编号 =1; 4. 解释代码:请解释下述代码的含义。( 5 分) DELETE * FROM article 3 WHERE 编号 =1; 三、 标准控件代码分析 1. 解释代码:请解释下述代码的含义。( 10 分) ButtonEx.aspx : 无标题页 - ButtonEx.vb : Part

3、ial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Response.Write(“通过按钮的 Click 事件触发后显示 !“) End Sub Protected Sub Button1_Command(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEven

4、tArgs) Handles Button1.Command Label1.Text = Label1.Text + “1“ End Sub End Class 2. 解释代码:请解释下述代码的含义。( 10 分) DropDownList.aspx : 无标题页 4 Item1 Item2 Item3 - DropDownList.vb : Partial Class _Default Inherits System.Web.UI.Page Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByV

5、al e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged Label1.Text = DropDownList1.SelectedItem.Value.ToString() End Sub End Class - 3. 解释代码:请解释下述代码的含义。( 10 分) RadioButtonListEx.aspx : 无标题页 Item1 Item2 Item3 - RadioButtonListEx.vb : 5 Partial Class _Default Inherits System.Web.UI.Page

6、Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles 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.Selected

7、Index = 1 Then Label1.Text = “2“ End If If RadioButtonList1.SelectedIndex = 2 Then Label1.Text = “3“ End If End Sub End Class 4. 解释代码:请解释下述代码的含义。( 10 分) CalendarEx.aspx : 无标题页 密 封 6 - CalendarEx.vb : Partial Class _Default Inherits System.Web.UI.Page Protected Sub Calendar1_SelectionChanged(ByVal se

8、nder As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged Label1.Text = Calendar1.SelectedDate.ToShortDateString() End Sub End Class 四、 网络基础名词解释 1. 请解释如图所示模型的含义。( 5 分) 2. 请解释如图所示模型的含义。( 5 分) 3. 请给出网络工具 ipconfig 的作用。( 5 分) (题 1 图) 4. 请解释如图 所示模型的含义。( 5 分) 密 封 线 d a t a b a s eS Q

9、 Ls e r v e rc lie n t7 d a t a b a s eb r o w s e rw e b s e r v e rS Q LH T T P五、 站点开发控件代码分析 1. 解释代码:请解释下述代码的含义。( 10 分) CompareValidatorEx.aspx : 无标题页 结束时间必需大于开始时间 - CompareValidatorEx.vb : Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal

10、 e As System.EventArgs) Handles Button1.Click CompareValidator1.Validate() If (CompareValidator1.IsValid = True) Then Response.Write(“通过检验 “) End If End Sub End Class 8 2. 解释代码:请解释下述代码的含义。( 10 分) SiteMapPathEx.master : 无标题页 - SiteMapPathEx.sitemap : - SiteMapPathEx_Default2.aspx : 转至个人信息页面 9 - SiteMapPathEx_Default3.aspx : 3. 解释代码:请解释下述代码的含义。( 10 分) TreeViewEx.aspx : - TreeViewEx.master : 无标题页 10 - TreeViewEx.sitemap : 4. 解释代码:请解释下述代码的含义。( 10 分) ValidationSummaryEx.aspx : 无标题页

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文资料库 > 毕业论文

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。