温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:我的VS2008通讯录项目源码
当前文件:
MyPhoneBook/Mypb/delete.aspx,打开代码结构图
MyPhoneBook/Mypb/delete.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="delete.aspx.cs" Inherits="Mypb.delete" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>无标题页</title> 8
<style type="text/css"> 9
10
.style5 { FONT-SIZE: xx-large; COLOR: #ffffff; BACKGROUND-COLOR: #00ffff } 11
.style6 { FONT-WEIGHT: bold; FONT-FAMILY: 华文彩云 } 12
.style7 13
{ 14
width: 573px; 15
} 16
</style> 17
</head> 18
<body> 19
<form id="form1" runat="server"> 20
<div> 21
22
</div> 23
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 24
DataSourceID="AccessDataSource1" DataTextField="姓名" DataValueField="姓名" 25
Height="16px" Width="154px"> 26
</asp:DropDownList> 27
<table style="width:100%;"> 28
<tr> 29
<td class="style7"> 30
<span class="style5"> 31
<span class="style6"> 32
<asp:DataGrid id="DataGrid1" runat="server" 33
DataSourceID="AccessDataSource2" style="font-family: 华文宋体" Width="735px"></asp:DataGrid> 34
</span> 35
</span> 36
</td> 37
<td> 38
</td> 39
<td> 40
</td> 41
</tr> 42
<tr> 43
<td class="style7"> 44
<asp:Label ID="Label1" runat="server"></asp:Label> 45
</td> 46
<td> 47
</td> 48
<td> 49
</td> 50
</tr> 51
<tr> 52
<td class="style7"> 53
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="确定" 54
Width="63px" /> 55
56
<asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="返回" 57
Width="66px" /> 58
</td> 59
<td> 60
</td> 61
<td> 62
</td> 63
</tr> 64
</table> 65
<asp:AccessDataSource ID="AccessDataSource1" runat="server" 66
DataFile="~/App_Data/Myphonebook.mdb" SelectCommand="SELECT [姓名] FROM [通信录]"> 67
</asp:AccessDataSource> 68
<asp:AccessDataSource ID="AccessDataSource2" runat="server" 69
DataFile="~/App_Data/Myphonebook.mdb" 70
SelectCommand="SELECT * FROM [通信录] WHERE ([姓名] = ?)"> 71
<SelectParameters> 72
<asp:ControlParameter ControlID="DropDownList1" Name="姓名" 73
PropertyName="SelectedValue" Type="String" /> 74
</SelectParameters> 75
</asp:AccessDataSource> 76
</form> 77
</body> 78
</html> 79




.style5
