📄 service.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="service.aspx.cs" Inherits="service" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="850";">
<tr>
<td align="center" style="height: 45px; width: 849px;"><img src="users/image/top.jpg" id="IMG1" onclick="return IMG1_onclick() " height="100" alt="luolili" style="width: 823px"/>
</td>
</tr>
</table>
<table>
<tr>
<td style="height: 24px; width: 826px;">
<a href=admin.aspx><font size=4><i>后台管理首页</i></font></a>
<a href=adminuser.aspx><font size=4><i>用户管理</i></font></a>
<a href=adminproduct.aspx><font size=4><i>产品管理</i></font></a>
<a href=order.aspx><font size=4><i>订单管理</i></font></a>
<a href=service.aspx><font size=4><i>售后服务</i></font></a>
<a href=admindata.aspx><font size=4><i>数据统计</i></font></a>
<a href=news.aspx><font size=4><i>新闻管理</i></font></a>
</td>
</tr>
</table>
<table style="width: 530px">
<tr>
<td>
您当前位置:<a href=admin.aspx>后台管理首页</a> >><a href=service.aspx>售后服务</a>
</td>
</tr>
</table></center>
<br />
<center>
</center>
<center><a href="service_a.aspx">查看所有留言的回复</a></center>
<center>
</center>
<center>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CellPadding="4" DataKeyNames="askid" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None" Height="189px" Width="668px">
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
<asp:BoundField DataField="askid" HeaderText="问题编号" InsertVisible="False" ReadOnly="True"
SortExpression="askid" />
<asp:BoundField DataField="asktitle" HeaderText="主题" SortExpression="asktitle" />
<asp:BoundField DataField="askcontent" HeaderText="问题内容" SortExpression="askcontent" />
<asp:BoundField DataField="askuser" HeaderText="发表人" SortExpression="askuser" />
<asp:BoundField DataField="asktime" HeaderText="发表日期" SortExpression="asktime" />
</Columns>
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:EbusinessConnectionString11 %>"
DeleteCommand="DELETE FROM [service_ask] WHERE [askid] = @askid" InsertCommand="INSERT INTO [service_ask] ([asktitle], [askcontent], [askuser], [asktime]) VALUES (@asktitle, @askcontent, @askuser, @asktime)"
SelectCommand="SELECT * FROM [service_ask] ORDER BY [asktime] DESC" UpdateCommand="UPDATE [service_ask] SET [asktitle] = @asktitle, [askcontent] = @askcontent, [askuser] = @askuser, [asktime] = @asktime WHERE [askid] = @askid">
<DeleteParameters>
<asp:Parameter Name="askid" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="asktitle" Type="String" />
<asp:Parameter Name="askcontent" Type="String" />
<asp:Parameter Name="askuser" Type="String" />
<asp:Parameter Name="asktime" Type="DateTime" />
<asp:Parameter Name="askid" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="asktitle" Type="String" />
<asp:Parameter Name="askcontent" Type="String" />
<asp:Parameter Name="askuser" Type="String" />
<asp:Parameter Name="asktime" Type="DateTime" />
</InsertParameters>
</asp:SqlDataSource>
</center>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -