温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:chx99个人主页源码
当前文件:
chx99/admin/command.aspx[3K,2009-6-12 11:35:58],打开代码结构图
chx99/admin/command.aspx[3K,2009-6-12 11:35:58],打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="command.aspx.cs" Inherits="admin_mangnew" %> 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
body 10
{ 11
font-size:12px; 12
} 13
#page a:link ,#page a:visited 14
{ 15
color:Black; 16
text-decoration:none; 17
} 18
#page a:hover 19
{ 20
text-decoration:underline; 21
color:Red; 22
} 23
.box 24
{ 25
width:600px; 26
text-align:left; 27
border:solid 1px #CCCCCC; 28
line-height:20px; 29
background-color:#F7F6F3; 30
} 31
.cont 32
{ 33
text-indent:24px; 34
background-color:#FFFFFF; 35
} 36
.del 37
{ 38
text-align:right; 39
} 40
</style> 41
</head> 42
<body> 43
<form id="form1" runat="server"> 44
<div align="center"> 45
<center>评论列表</center> 46
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 47
CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" 48
PageSize="15" ShowFooter="True"> 49
<Columns> 50
<asp:TemplateField HeaderText="" SortExpression="Name"> 51
<ItemTemplate> 52
<div class="box"> 53
昵称:<%#Server.HtmlEncode(Eval("Name").ToString()) %> 54
时间:<%# Eval("Tim") %> 55
主页:<%# Eval("Home") %> 56
E-mail:<%# Eval("Mail") %><br /> 57
来源主题: <%# Eval("Title") %> 58
<div class="cont"> 59
<%#Server.HtmlEncode(Eval("Cont").ToString()) %> 60
</div> 61
<div class="del"> 62
<a href='<%# Eval("id", "delcommand.aspx?id="+Request.QueryString["id"].ToString()+"&did={0}") %>'>删除</a> 63
</div> 64
</div> 65
</ItemTemplate> 66
</asp:TemplateField> 67
</Columns> 68
</asp:GridView><br /> 69
<div id="page"> 70
总共<span style="color:#FFCC00; font-size:14px;"><asp:Label ID="Label2" 71
runat="server" Text="Label" ForeColor="Red"></asp:Label></span>页 72
当前是第<span style="color:#FFCC00; font-size:14px;"><asp:Label ID="Label1" runat="server" 73
Text="Label" ForeColor="Red"></asp:Label></span>页 74
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">首页</asp:LinkButton> 75
<asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click">上一页</asp:LinkButton> 76
<asp:LinkButton ID="LinkButton3" runat="server" onclick="LinkButton3_Click">下一页</asp:LinkButton> 77
<asp:LinkButton ID="LinkButton4" runat="server" onclick="LinkButton4_Click">末页</asp:LinkButton> 78
跳转到第<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 79
onselectedindexchanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList>页 80
</div> 81
</div> 82
83
</form> 84
</body> 85
</html> 86




body

