课程设计vb.docx

上传人:b****7 文档编号:11302714 上传时间:2023-02-26 格式:DOCX 页数:24 大小:309.39KB
下载 相关 举报
课程设计vb.docx_第1页
第1页 / 共24页
课程设计vb.docx_第2页
第2页 / 共24页
课程设计vb.docx_第3页
第3页 / 共24页
课程设计vb.docx_第4页
第4页 / 共24页
课程设计vb.docx_第5页
第5页 / 共24页
点击查看更多>>
下载资源
资源描述

课程设计vb.docx

《课程设计vb.docx》由会员分享,可在线阅读,更多相关《课程设计vb.docx(24页珍藏版)》请在冰豆网上搜索。

课程设计vb.docx

课程设计vb

运城学院

软件开发环境与工具

实验四

实验题目:

Treeview对应用程序的导航

实验类型:

设计性

实验地点:

第三软件实验室

指导老师:

王琦

专业班级:

计算机科学与技术系1102班

姓名:

马苗苗(2011100226)

2013年12月9日

 

实验类型__设计性_实验室_软件实验室一__

一.实验项目名称:

Treeview对应用程序的导航

二.实验目的:

1、掌握treeview控件的具体使用方法。

2、建立树型数据库。

3、结合treeview控件生成树型管理结构。

三.实验要求:

1、至少有两级目录。

2、树型自动生成节点。

3、双击不同节点打开相应页面。

四.实验代码及截图

代码:

<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="zuoye.aspx.cs"Inherits="_Default"%>

DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http:

//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

//www.w3.org/1999/xhtml">

无标题页

.style2

{

width:

125%;

height:

476px;

}

.style5

{font-size:

x-large;

font-weight:

700;

}

.style6

{

font-size:

x-large;

font-weight:

700;

}

.style9

{

width:

470px;

font-size:

x-large;

font-weight:

700;

}

.style11

{

font-size:

x-large;

font-weight:

700;

}

.style12

{

font-size:

x-large;

font-weight:

700;

height:

28px;

width:

274px;

}

.style15

{

font-weight:

normal;

font-size:

xx-large;

font-style:

italic;

}

.style16

{

font-size:

xx-large;

}

.style17

{

background-color:

#66FFFF;

}

.style18

{

width:

129%;

}

.style19

{

}

.style20

{

width:

349px;

}

.style21

{

font-size:

x-large;

font-weight:

700;

}

.style22

{

font-size:

x-large;

font-weight:

700;

height:

28px;

}

.style23

{

font-size:

x-large;

font-weight:

700;

width:

274px;

}

.style25

{

width:

157px;

}

.style26

{

font-size:

x-large;

font-weight:

700;

width:

862px;

}

.style27

{

}

.style28

{

font-weight:

normal;

font-size:

large;

}

.style29

{

width:

104px;

font-size:

x-large;

font-weight:

700;

}

.style30

{

font-size:

x-large;

font-weight:

700;

height:

48px;

}

.style31

{

width:

116px;

}

.style32

{

width:

130px;

font-size:

x-large;

font-weight:

700;

}

PanelID="Panel2"runat="server"BorderColor="#CCFFFF"

style="height:

473px;width:

925px"Width="1077px"Height="450px">

                                               

class="style17">学生基本信息表

class="style15">                     

     学  号:

TextBoxID="TextBox1"runat="server">

TextBox>

请输入11位数字)

RegularExpressionValidator

ID="RegularExpressionValidator3"runat="server"ControlToValidate="TextBox1"

ErrorMessage="输入格式不正确"Font-Size="Medium"ValidationExpression="[0-9]{11}">

RegularExpressionValidator>

x-large;font-weight:

700">

姓名:

TextBoxID="TextBox3"runat="server"Width="95px">

TextBox>

RequiredFieldValidatorID="RequiredFieldValidator1"runat="server"

ControlToValidate="TextBox3"ErrorMessage="RequiredFieldValidator"

Font-Size="Medium">姓名不能为空

RequiredFieldValidator>

 性别:

RadioButtonListID="RadioButtonList1"runat="server"

RepeatDirection="Horizontal"style="margin-left:

5px">

ListItem>男

ListItem>

ListItemSelected="True">女

ListItem>

RadioButtonList>

(请选择)

   出生日期:

DropDownListID="ddlYear"runat="server"AutoPostBack="True"

onselectedindexchanged="ddlYear_SelectedIndexChanged"

ondatabinding="ddlYear_SelectedIndexChanged">

DropDownList>

DropDownListID="ddlMonth"runat="server"AutoPostBack="True"

onselectedindexchanged="ddlMonth_SelectedIndexChanged"

ondatabinding="ddlMonth_SelectedIndexChanged">

DropDownList>

DropDownListID="ddlDay"runat="server">

DropDownList>

     籍 贯:

TextBoxID="TextBox10"runat="server">

TextBox>

RequiredFieldValidatorID="RequiredFieldValidator2"runat="server"

ControlToValidate="TextBox10"ErrorMessage="RequiredFieldValidator"

Font-Size="Medium">不能为空

RequiredFieldValidator>

   政治面貌:

DropDownListID="DropDownList17"runat="server">

ListItem>--请选择--

ListItem>

ListItem>党员

ListItem>

ListItem>团员

ListItem>

ListItem>群众

ListItem>

DropDownList>

学院:

DropDownListID="DropDownList9"runat="server"

onselectedindexchanged="DropDownList9_SelectedIndexChanged"

AutoPostBack="True">

ListItem>--请选择--

ListItem>

ListItem>数信

ListItem>

ListItem>经济

ListItem>

ListItem>外国语

ListItem>

DropDownList>

      系:

DropDownListID="DropDownList10"

runat="server"AutoPostBack="True"

onselectedindexchanged="DropDownList10_SelectedIndexChanged">

ListItem>--请选择--

ListItem>

DropDownList>

     专业:

DropDownList

runat="server"ID="DropDownList11"AutoPostBack="True"

onselectedindexchanged="DropDownList11_SelectedIndexChanged">

ListItem>--请选择--

ListItem>

DropDownList>

         年级:

DropDownList

ID="DropDownList13"runat="server"

onselectedindexchanged="DropDownList13_SelectedIndexChanged"

AutoPostBack="True">

ListItem>--请选择--

ListItem>

DropDownList>

      班级:

DropDownListID="DropDownList16"runat="server"

AutoPostBack="True"onselectedindexchanged="Page_Load">

ListItem>--请选择--

ListItem>

DropDownList>

   家庭住址:

TextBoxID="TextBox5"runat="server"Width="104px">

TextBox>

RequiredFieldValidatorID="RequiredFieldValidator4"runat="server"

ControlToValidate="TextBox5"ErrorMessage="RequiredFieldValidator"

Font-Size="Medium">不能为空

RequiredFieldValidator>

TextBoxID="TextBox6"runat="server"Width="111px">

TextBox>

RequiredFieldValidatorID="RequiredFieldValidator5"runat="server"

ControlToValidate="TextBox6"ErrorMessage="RequiredFieldValidator"

Font-Size="Medium">不能为空

RequiredFieldValidator>

 

 

   联系电话:

TextBoxID="TextBox7"runat="server">

TextBox>

RequiredFieldValidatorID="RequiredFieldValidator3"runat="server"

ControlToValidate="TextBox7"ErrorMessage="RequiredFieldValidator"

Font-Size="Medium">不能为空

RequiredFieldValidator>

   身份证号:

TextBoxID="TextBox8"runat="server">

TextBox>

RequiredFieldValidatorID="RequiredFieldValidator6"runat="server"

ControlToValidate="TextBox8"Display="Dynamic"

ErrorMessage="RequiredFieldValidator"Font-Size="Medium">不能为空

RequiredFieldValidator>

RegularExpressionValidatorID="RegularExpressionValidator1"runat="server"

ControlToValidate="TextBox8"ErrorMessage="请输入正确的身份证号"Font-Size="Medium"

ValidationExpression="\d{17}[\d|X]|\d{15}">

RegularExpressionValidator>

 

 

 

      Email:

TextBoxID="TextBox9"runat="server">

TextBox>

RequiredFieldValidatorID="RequiredFieldValidator7"runat="server"

ControlToValidate="TextBox9"Display="Dynamic"

ErrorMessage="RequiredFieldValidator"Font-Size="Medium">不能为空

RequiredFieldValidator>

RegularExpressionValidatorID="RegularExpressionValidator2"runat="server"

ControlToValidate="TextBox9"ErrorMessage="您输入的格式不正确"Font-Size="Medium"

ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">

RegularExpressionValidator>

 

 

 

   入学日期:

DropDownListID="ddlYear1"runat="server"

Height="25px"Width="87px"AutoPostBack="True"

onselectedindexchanged="ddlYear1_SelectedIndexChanged"

ondatabinding="ddlYear1_SelectedIndexChanged">

DropDownList>

DropDownListID="ddlMonth1"runat="server"

Height="20px"Width="81px"AutoPostBack="True"

onselectedindexchanged="ddlMonth1_SelectedIndexChanged"

ondatabinding="ddlMonth1_SelectedIndexChanged">

DropDownList>

DropDownListID="ddlDay1"runat="server"

Height="21px"Width="86px">

DropDownList>

    毕业日期:

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 历史学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1