网络应用与开发复习资料.docx
- 文档编号:30031465
- 上传时间:2023-08-04
- 格式:DOCX
- 页数:25
- 大小:22.10KB
网络应用与开发复习资料.docx
《网络应用与开发复习资料.docx》由会员分享,可在线阅读,更多相关《网络应用与开发复习资料.docx(25页珍藏版)》请在冰豆网上搜索。
网络应用与开发复习资料
1_1:
用2个label控件、1个textbox控件、1个button控件制作一个简单网页,实现提交后,页面显示:
欢迎XXX(考生姓名)!
成功就是如此简单,赶快行动吧
各控件的属性名称及属性值
控件类别
控件
属性名称
属性值
备注
Web控件
Label
Id
Label1
用于显示提示信息
Text
请输入您的姓名
ForeColor
#0000C0
蓝色
Label
Id
Label2
在用户单击“确定”按钮后显示欢迎信息
Text
空
Font.Size
Medium
ForeColor
#0000C0
蓝色
TextBox
Id
TextBox1
用于输入考生姓名
Text
空
Button
Id
Button1
确定按钮
Text
确定
写出按钮事件代码:
(P3)
答案:
Aspx页面代码:
//www.w3.org/1999/xhtml">
LabelID="Label1"runat="server"Font-Bold="True"Font-Size="XX-Large"ForeColor="#0000C0" Text="请输入您的姓名">
Label>
TextBoxID="TextBox1"runat="server">
TextBox>
ButtonID="Button1"runat="server"Font-Bold="True"Font-Size="XX-Large"Text="确定"/> LabelID="Label2"runat="server"Height="97px"Width="385px"Font-Size="Medium"ForeColor="#0000C0"> Label>