网页设计实验报告二.doc«WEB程序设计》课程实验报告
实验名称
实验序号
2
姓 名
江梦莹 系院专业
网络工程
班 级 2班
学 号
1210322215
实验日期
第五周周二1、2节
指导教师
马忠宝
成 绩
一、实验目的
;
;
二、实验内容与要求
课本62页第5题的第(8)小题,85页第5题的第(2)小题,两者任选其一,要求代码要有注 释。
三、 实验环境
地点:实训综合大楼A座4楼
设备:PC机VS2010
四、 实验步骤与结果
1 .添加TextBox, labeL dropdownlist, Button等控件,并且对其设置好相关的属性
客户端对象和事件 ▼
(无郭牛)
<t itleX/t itle>
</head>
<body>
<form id=*forml* runat=*server*>
<div>
<asp:Label ID="Label2" runat=wserver* Text姓名:"X/asp:Label>
<asp: Text Box ID=*TextBoxl* runat=* server* ></ asp: TextBoxXbr />
<asp:Label ID=*Label3* runat=*server* Text年龄:"X/asp:Label>
<asp: DropDownList ID=*DropDownList K rxmat=*f server*
onse 1 ect edindexchanged= **DropDownList l_Select edlndexChanged* >
</ asp: DropDownList >年
<asp:DropDownList ID=*DropDownList 2* runat=*server*
ons e 1 e ct e dindex chang e d= ** D r opD ownL ist 2_Select e dlndexChang ed* >
</ asp: DropDownList >月
<asp: DropDownList ID=WDropDownList3* runat=* server**>
</asp:DropDownList > H <br />
<asp:Button ID=rtrButtonl,* runat="server" Text="确定"onclick=^Buttonl^Click** /> <asp:Label ID=*labeloutputw runat=*server*></asp:Label>
</ div>
/t卡c
)0% …
3 | 口 回源 < <html> <body> <form#forml> <div> <asp:DropDownList#DropDow...>
进行css设计,对现在的年份进行处理,用现在的年份减去选择的年份,然后跟18进行比较,然 后输出相应的结果。
5namespace WebApplicat ion2
{
public partial class WebForml : Systea. Web
网页设计实验报告二 来自淘豆网m.daumloan.com转载请标明出处.