温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:某市人口普查系统源码
当前文件路径:RenKouPuCha/Code/AddRecord.aspx

1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddRecord.aspx.cs" Inherits="Code_AddRecord" EnableEventValidation="true" %> 2
3
<%@ Register Assembly="Microsoft.Web.Atlas" Namespace="Microsoft.Web.UI" TagPrefix="cc1" %> 4
5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6
7
<html xmlns="http://www.w3.org/1999/xhtml" > 8
<head runat="server"> 9
<title>无标题页</title> 10
</head> 11
<body style="text-align: center; background-color: #ffffff;" background="../image/bg1.jpg"> 12
<form id="form1" runat="server"> 13
<div> 14
<br /> 15
<br /> 16
<table style="width: 500px; height: 410px" border="2" bordercolor="#330000" > 17
<tr> 18
<td colspan="3" style="text-align: center"> 19
<span style="font-size: 16pt; color: #660000;"><strong>添加人口信息</strong></span></td> 20
</tr> 21
<tr style="font-size: 12pt"> 22
<td style="width: 120px;text-align:left"> 23
身份号码:</td> 24
<td colspan="2" style="text-align: left;width:400px" > 25
<asp:TextBox ID="idTextBox" runat="server" Height="100%" ></asp:TextBox></td> 26
</tr> 27
<tr style="font-size: 12pt"> 28
<td style="width: 30%;text-align:center"> 29
姓名:</td> 30
<td colspan="2" style="text-align: left; width: 454px;"> 31
<asp:TextBox ID="nameTextBox" runat="server"></asp:TextBox></td> 32
</tr> 33
<tr style="font-size: 12pt"> 34
<td style="width: 30%; text-align: center;"> 35
年龄:</td> 36
<td colspan="2" style="text-align: left; width: 454px;"> 37
<asp:TextBox ID="ageTextBox" runat="server"></asp:TextBox></td> 38
</tr> 39
<tr style="font-size: 12pt"> 40
<td style="width: 30%; text-align: center;"> 41
职业:</td> 42
<td colspan="2" style="text-align: left; width: 454px;"> 43
<asp:TextBox ID="profTextBox" runat="server"></asp:TextBox></td> 44
</tr> 45
<tr style="font-size: 12pt"> 46
<td style="width: 30%; text-align: center;"> 47
性别:</td> 48
<td colspan="2" style="text-align: left; width: 454px;"> 49
<asp:DropDownList ID="sexDrop" runat="server" Width="56px"> 50
<asp:ListItem>男</asp:ListItem> 51
<asp:ListItem>女</asp:ListItem> 52
</asp:DropDownList></td> 53
</tr> 54
<tr style="font-size: 12pt"> 55
<td style="width: 30%; text-align: center;"> 56
文化水平:</td> 57
<td colspan="2" style="text-align: left; width: 454px;"> 58
<asp:DropDownList ID="eduDropD" runat="server" Width="97px"> 59
<asp:ListItem>未上过学</asp:ListItem> 60
<asp:ListItem>小学</asp:ListItem> 61
<asp:ListItem>初中</asp:ListItem> 62
<asp:ListItem>高中</asp:ListItem> 63
<asp:ListItem>中专</asp:ListItem> 64
<asp:ListItem>本科</asp:ListItem> 65
<asp:ListItem>大专</asp:ListItem> 66
<asp:ListItem>研究生</asp:ListItem> 67
</asp:DropDownList></td> 68
</tr> 69
<tr style="font-size: 12pt"> 70
<td style="width: 30%; text-align: center;"> 71
国籍:</td> 72
<td colspan="2" style="text-align: left; width: 454px;"> 73
<asp:DropDownList ID="nationDropD" runat="server" Width="96px"> 74
<asp:ListItem>中国</asp:ListItem> 75
<asp:ListItem>美国</asp:ListItem> 76
<asp:ListItem>日本</asp:ListItem> 77
<asp:ListItem>英国</asp:ListItem> 78
<asp:ListItem>韩国</asp:ListItem> 79
<asp:ListItem>朝鲜</asp:ListItem> 80
<asp:ListItem>德国</asp:ListItem> 81
<asp:ListItem>法国</asp:ListItem> 82
<asp:ListItem>俄罗斯</asp:ListItem> 83
</asp:DropDownList></td> 84
</tr> 85
<tr style="font-size: 12pt"> 86
<td style="width: 30%; text-align: center;"> 87
政治面貌:</td> 88
<td colspan="2" style="text-align: left; width: 454px;"> 89
<asp:DropDownList ID="polityDropD" runat="server" Width="97px"> 90
<asp:ListItem>群众</asp:ListItem> 91
<asp:ListItem>团员</asp:ListItem> 92
<asp:ListItem>党员</asp:ListItem> 93
<asp:ListItem>民盟</asp:ListItem> 94
</asp:DropDownList></td> 95
</tr> 96
<tr style="font-size: 12pt"> 97
<td style="width: 30%; text-align: center;"> 98
婚否:</td> 99
<td colspan="2" style="text-align: left; width: 454px;"> 100
<asp:DropDownList ID="marriDropD" runat="server" Width="95px"> 101
<asp:ListItem>已婚</asp:ListItem> 102
<asp:ListItem>未婚</asp:ListItem> 103
<asp:ListItem>离婚</asp:ListItem> 104
</asp:DropDownList></td> 105
</tr> 106
<tr style="font-size: 12pt"> 107
<td style="width: 30%; text-align: center; height: 28px;"> 108
年收入:</td> 109
<td colspan="2" style="text-align: left; width: 454px; height: 28px;"> 110
<asp:TextBox ID="incomTextBox" runat="server"></asp:TextBox></td> 111
</tr> 112
<tr style="font-size: 12pt"> 113
<td style="width: 30%; text-align: center" rowspan="2"> 114
出生地:</td> 115
<td colspan="1" style="text-align: left; width: 80px; height: 21px;"> 116
<asp:Label ID="Label4" runat="server" Text="省份" Width="50px"></asp:Label></td> 117
<td colspan="1" style="width: 112px; text-align: left; height: 21px; position:static"> 118
<asp:DropDownList ID="DropDownList1" runat="server" Height="21px" Width="100px" AutoPostBack="True" AppendDataBoundItems="True" DataSourceID="SqlDataSource1" DataTextField="provName" DataValueField="provID" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> 119
<asp:ListItem Value="0">--请选择--</asp:ListItem> 120
</asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=(local);Initial Catalog=Censuse;Persist Security Info=True;User ID=sa;Password=sa" 121
ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [tProvince]"></asp:SqlDataSource> 122
</td> 123
<td colspan="1" style="text-align: left; height: 21px; width: 55px;"> 124
<asp:Label ID="Label3" runat="server" Text="城市" Width="50px"></asp:Label></td> 125
126
127
<td colspan="1" style="text-align: left; width:100px; height: 21px"> 128
<cc1:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True"> 129
</cc1:ScriptManager> 130
<cc1:UpdatePanel ID="UpdatePanel1" runat="server"> 131
<ContentTemplate> 132
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" Height="21px" Width="100px" AppendDataBoundItems="true" OnDataBinding="DropDownList2_DataBinding" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged"> 133
</asp:DropDownList> 134
</ContentTemplate> 135
<Triggers> 136
<cc1:ControlEventTrigger ControlID="DropDownList1" EventName="SelectedIndexChanged" /> 137
</Triggers> 138
</cc1:UpdatePanel> 139
</td> 140
141
</tr> 142
<tr style="font-size: 12pt"> 143
<td colspan="1" style="text-align:left; width:80px"> 144
<asp:Label ID="Label1" runat="server" Text="县区" Width="50px"></asp:Label></td> 145
<td colspan="1" style="width: 112px; text-align: left"> 146
<cc1:UpdatePanel ID="UpdatePanel2" runat="server"> 147
<ContentTemplate> 148
<asp:DropDownList ID="DropDownList3" runat="server" Height="21px" Width="100px" AutoPostBack="True" AppendDataBoundItems="True" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged" OnDataBinding="DropDownList3_DataBinding"> 149
</asp:DropDownList> 150
</ContentTemplate> 151
<Triggers> 152
<cc1:ControlEventTrigger ControlID="DropDownList2" EventName="SelectedIndexChanged" /> 153
</Triggers> 154
</cc1:UpdatePanel> 155
</td> 156
<td colspan="1" style="text-align: left; width: 55px;"> 157
<asp:Label ID="Label2" runat="server" Text="乡镇"></asp:Label></td> 158
<td colspan="1" style="width: 100px; text-align: left"> 159
<cc1:UpdatePanel ID="UpdatePanel3" runat="server"> 160
<ContentTemplate> 161
<asp:DropDownList ID="DropDownList4" runat="server" Width="100" AppendDataBoundItems="True" OnDataBinding="DropDownList4_DataBinding"> 162
</asp:DropDownList> 163
</ContentTemplate> 164
<Triggers> 165
<cc1:ControlEventTrigger ControlID="DropDownList3" EventName="SelectedIndexChanged" /> 166
</Triggers> 167
</cc1:UpdatePanel> 168
</td> 169
</tr> 170
<tr style="font-size: 12pt"> 171
<td colspan="4" style="width: 400px; text-align: center;"> 172
<asp:Button ID="submitButton" runat="server" Text="提交" OnClientClick="提交成功!" OnClick="submitButton_Click"/> 173
174
<asp:Button ID="Button2" runat="server" Text="返回" OnClick="backButton_Click"/></td> 175
</tr> 176
</table> 177
</div> 178
</form> 179
</body> 180
</html> 181



