Gbook.aspx
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Gbook.aspx.cs" Inherits="Gbook" %>
<%@ Register src="control/GbookList.ascx" tagname="GbookList" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>留言板</title>
<link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body style="background:white url(images/bg.png) repeat-x;">
<form id="form1" runat="server">
<div class="gbook_main_title"></div>
<div class="gbook_banner">
<img alt="" src="images/groups.png" style="width: 16px; height: 16px" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<img alt="" src="images/gift.png" style="width: 16px; height: 16px" />
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
<img alt="" src="images/logout.png" style="width: 16px; height: 16px" />
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
</div>
<div class="gbook_main">
<div class="left">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
CellPadding="4" DataKeyNames="id" DataSourceID="SqlDataSource1"
ForeColor="Black" GridLines="Horizontal" ShowHeader="False" Width="100%">
<FooterStyle BackColor="#CCCC99" ForeColor="Black" />
<Columns>
<asp:HyperLinkField DataNavigateUrlFields="id"
DataNavigateUrlFormatString="Gbook.aspx?cid={0}" DataTextField="classname"
DataTextFormatString="{0}" />
</Columns>
<PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
<SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</div>
<div class="right">
<uc1:GbookList ID="GbookList1" runat="server" />
<br />
<asp:Panel ID="Panel1" runat="server">
给我们留言:<br />
主题:<asp:TextBox ID="TextBox2" runat="server" Width="411px"></asp:TextBox>
<br />
内容:<br />
<asp:TextBox ID="TextBox1" runat="server" Height="150px" TextMode="MultiLine"
Width="99%"></asp:TextBox>
<br />
<asp:Button ID="Button1" runat="server" Text="留言" onclick="Button1_Click" />
</asp:Panel>
</div>
</div>
<div class="copyright">Copyright 2015-2017 惠源公司</div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:guestbookConnectionString %>"
SelectCommand="SELECT top 10 * FROM [gbook_class] ORDER BY [id] DESC">
</asp:SqlDataSource>
</form>
</body>
后面还有 1 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
