温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:我的VS2008通讯录项目源码
当前文件:
MyPhoneBook/Mypb/update.aspx,打开代码结构图
MyPhoneBook/Mypb/update.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="update.aspx.cs" Inherits="Mypb.update" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
<!--download from 51aspx.com(51aspx.com)--> 5
6
<html xmlns="http://www.w3.org/1999/xhtml" > 7
<head runat="server"> 8
<title>无标题页</title> 9
<style type="text/css"> 10
.style1 11
{ 12
font-size: xx-large; 13
color: #FF6600; 14
font-family: 华文琥珀; 15
} 16
.style2 17
{ 18
width: 129px; 19
} 20
</style> 21
</head> 22
<body> 23
<form id="form1" runat="server"> 24
<div> 25
26
27
<span class="style1">修改数据</span></div> 28
<table style="width: 100%; height: 119px;"> 29
<tr> 30
<td class="style2"> 31
32
姓名 </td> 33
<td> 34
<asp:DropDownList ID="DropDownList1" runat="server" 35
DataSourceID="AccessDataSource2" DataTextField="姓名" DataValueField="姓名" 36
Height="16px" onselectedindexchanged="DropDownList1_SelectedIndexChanged" 37
Width="127px"> 38
</asp:DropDownList> 39
</td> 40
<td> 41
</td> 42
</tr> 43
<tr> 44
<td class="style2"> 45
46
电话 </td> 47
<td> 48
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 49
</td> 50
<td> 51
</td> 52
</tr> 53
<tr> 54
<td class="style2"> 55
56
英语 </td> 57
<td> 58
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> 59
</td> 60
<td> 61
</td> 62
</tr> 63
</table> 64
<p> 65
66
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="提交" /> 67
68
<asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="返回" /> 69
</p> 70
<asp:AccessDataSource ID="AccessDataSource2" runat="server" 71
DataFile="~/App_Data/Myphonebook.mdb" SelectCommand="SELECT * FROM [通信录]"> 72
</asp:AccessDataSource> 73
</form> 74
</body> 75
</html> 76



.style1

