📄 留言板.aspx
字号:
<%@ Page Language="VB" MasterPageFile="~/母版2.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 align =left colspan="3" style="height: 58px" >
<asp:Image ID="Image1" runat="server" ImageAlign="Middle" ImageUrl="~/image/留言板.jpg" /></td>
</tr>
<tr>
<td align =right style="width: 226px" >
头像:</td>
<td align=left style="width: 222px">
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="AccessDataSource2" DataTextField="头像名称" DataValueField="路径" AutoPostBack="True">
</asp:DropDownList><asp:AccessDataSource ID="AccessDataSource2" runat="server" DataFile="~/App_Data/db1.mdb"
SelectCommand="SELECT [头像名称], [路径] FROM [头像]"></asp:AccessDataSource>
</td>
<td align =left >
<div style=" width: 40px; height: 40px" runat=server id=ShowT></div>
</td>
</tr>
<tr>
<td align = right style="width: 226px" >
昵称:</td>
<td align = left colspan=2>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td align =right style="width: 226px; height: 44px;" >
内容</td>
<td align =left colspan=2 style="height: 44px">
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine"></asp:TextBox></td>
</tr>
<tr>
<td align =right style="width: 226px" >
<asp:Button ID="Button1" runat="server" Text="提交" /></td>
<td align =left colspan=2>
<asp:Button ID="Button2" runat="server" Text="重置" /><asp:Label ID="Label1" runat="server"
Text="Label" Width="344px"></asp:Label></td>
</tr>
<tr>
<td colspan="3" >
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="编号" DataSourceID="AccessDataSource3" PageSize="8">
<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 + -