admin/News/NewsClassList.aspx
(完整代码) 3KB<%@ Page Language="C#" MasterPageFile="~/admin/adminmasterpage.master" AutoEventWireup="true" CodeFile="NewsClassList.aspx.cs" Inherits="admin_News_NewsClassList" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="table" width="99%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr align="center" valign="top">
<td class="td_bg">
<asp:GridView ID="GridView1" runat="server" CssClass="top" EmptyDataText="没有此信息" AutoGenerateColumns="False" DataKeyNames="cid"
DataSourceID="AccessDataSource1" Width="100%" OnRowDeleting="GridView1_RowDeleting">
<Columns>
<asp:BoundField DataField="cid" HeaderText="ID" InsertVisible="False" ReadOnly="True"
SortExpression="cid" />
<asp:BoundField DataField="title" HeaderText="中文标题" SortExpression="title" />
<asp:BoundField DataField="title_en" HeaderText="英文标题" SortExpression="title_en" />
<asp:BoundField DataField="show" HeaderText="show" Visible="false" SortExpression="show" />
<asp:BoundField DataField="xuhao" HeaderText="xuhao" Visible="false" SortExpression="xuhao" />
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
</Columns>
<RowStyle BorderWidth="1px" BackColor="White" />
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
<HeaderStyle CssClass="bg_tr" BackColor="#E4F1FA" Font-Bold="True" ForeColor="#1E5494" Font-Size="12px" />
<EditRowStyle BackColor="#E4F1FA" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加新类别" /><br />
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/ba.mdb"
DeleteCommand="DELETE FROM [newsclass] WHERE [cid] = ?" InsertCommand="INSERT INTO [newsclass] ([cid], [title], [title_en], [show], [xuhao]) VALUES (?, ?, ?, ?, ?)"
SelectCommand="SELECT * FROM [newsclass] ORDER BY [xuhao]" UpdateCommand="UPDATE [newsclass] SET [title] = ?, [title_en] = ?, [show] = ?, [xuhao] = ? WHERE [cid] = ?">
<DeleteParameters>
<asp:Parameter Name="cid" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="title" Type="String" />
<asp:Parameter Name="title_en" Type="String" />
<asp:Parameter Name="show" Type="Int32" />
<asp:Parameter Name="xuhao" Type="Int32" />
<asp:Parameter Name="cid" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="cid" Type="Int32" />
<asp:Parameter Name="title" Type="String" />
<asp:Parameter Name="title_en" Type="String" />
<asp:Parameter Name="show" Type="Int32" />
<asp:Parameter Name="xuhao" Type="Int32" />
</InsertParameters>
</asp:AccessDataSource>
</td>
</tr>
</table>
</asp:Content>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。