📄 管理留言板.aspx
字号:
<%@ Page Language="VB" MasterPageFile="~/母版1.master" AutoEventWireup="false" CodeFile="管理留言板.aspx.vb" Inherits="管理留言板" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="1" width ="100%" style="background-image: url(image/liiuyan2.jpg)">
<tr>
<td colspan = 4 align =right >
请选择要删除的编号:</td>
<td style="width: 100px" colspan = 4 align =left >
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="AccessDataSource2" DataTextField="编号" DataValueField="编号">
</asp:DropDownList><asp:AccessDataSource ID="AccessDataSource2" runat="server" DataFile="~/App_Data/db1.mdb"
SelectCommand="SELECT [编号] FROM [留言板]"></asp:AccessDataSource>
</td>
<td style="width: 100px" colspan = 4>
<asp:Button ID="Button1" runat="server" Text="删除" />
</td>
<td style="width: 104px" colspan = 4>
<asp:Label ID="Label1" runat="server" Text="Label" Visible="False" ForeColor="Red" Width="96px"></asp:Label></td>
</tr>
<tr>
<td colspan="16">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataKeyNames="编号" DataSourceID="AccessDataSource3"
PageSize="5">
<Columns>
<asp:BoundField DataField="编号" HeaderText="编号" InsertVisible="False" ReadOnly="True"
SortExpression="编号" />
<asp:BoundField DataField="昵称" HeaderText="昵称" SortExpression="昵称" />
<asp:BoundField DataField="内容" HeaderText="内容" SortExpression="内容" />
<asp:BoundField DataField="时间" HeaderText="时间" SortExpression="时间" />
<asp:ImageField DataImageUrlField="头像" DataImageUrlFormatString="touxiang/{0}" HeaderText="头像">
</asp:ImageField>
</Columns>
</asp:GridView>
<asp:AccessDataSource ID="AccessDataSource3" runat="server" DataFile="~/App_Data/db1.mdb"
SelectCommand="SELECT [头像], [编号], [昵称], [内容], [时间] FROM [留言板]"></asp:AccessDataSource>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/db1.mdb"
SelectCommand="SELECT [编号], [昵称], [内容], [时间], [头像] FROM [留言板]"></asp:AccessDataSource>
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -