📄 itemmanage.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ItemManage.aspx.cs" Inherits="NewsItemManage_ItemManage" %>
<!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>
<div style="z-index: 101; left: 3px; width: 816px; position: absolute; top: 6px;
height: 224px">
<table style="width: 821px">
<tr>
<td style="width: 100px; height: 13px; font-weight: bold; color: #ffffff; background-color: cornflowerblue;" valign="middle">
<asp:Label ID="Label1" runat="server" Text="栏目管理" Font-Size="Medium" Height="16px"></asp:Label></td>
</tr>
</table>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataSourceID="ODSManager" ForeColor="#333333" GridLines="None" OnRowUpdating="GridView1_RowUpdating" PageSize="5" DataKeyNames="ItemID" Width="819px" OnRowDataBound="GridView1_RowDataBound" ToolTip="栏目顺序只能是数字">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="ItemID" HeaderText="编号" ReadOnly="True" SortExpression="ItemID" >
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Font-Size="Small" Height="8px" />
</asp:BoundField>
<asp:BoundField DataField="ItemName" HeaderText="栏目名称" SortExpression="ItemName" >
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Font-Size="Small" Height="8px" />
</asp:BoundField>
<asp:BoundField DataField="ItemDesc" HeaderText="栏目描述" SortExpression="ItemDesc" >
<HeaderStyle Font-Size="Small" Height="8px" />
</asp:BoundField>
<asp:TemplateField HeaderText="栏目顺序" SortExpression="ItemOrder">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ItemOrder") %>'></asp:TextBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Font-Size="Small" Height="8px" />
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("ItemOrder") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField EditImageUrl="~/Image/edit.gif" HeaderText="修改"
ShowEditButton="True" EditText="<img src='../Image/edit.gif' border='0' alt='修改' />" CancelImageUrl="~/Image/cancel.png" CancelText="<img src='../Image/cancel.png' border='0' alt='取消' />" UpdateImageUrl="~/Image/update.png" UpdateText="<img src='../Image/update.png' border='0' alt='更新' />">
<FooterStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" Font-Size="Small" Height="8px" />
<ItemStyle HorizontalAlign="Center" />
</asp:CommandField>
<asp:CommandField DeleteImageUrl="~/Image/icon_del.gif" HeaderText="删除"
ShowDeleteButton="True" DeleteText="<img src='../Image/icon_del.gif' border='0' alt='删除' />">
<FooterStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" Font-Size="Small" Height="8px" />
<ItemStyle HorizontalAlign="Center" />
</asp:CommandField>
</Columns>
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:ObjectDataSource ID="ODSManager" runat="server" SelectMethod="FindNewsItem"
TypeName="NewsItemObj" UpdateMethod="UpdateNewsItem" DeleteMethod="DelNewsItem">
<UpdateParameters>
<asp:Parameter Name="itemID" Type="Int32" />
<asp:Parameter Name="itemName" Type="String" />
<asp:Parameter Name="itemDesc" Type="String" />
<asp:Parameter Name="itemOrder" Type="Int32" />
</UpdateParameters>
<DeleteParameters>
<asp:Parameter Name="itemID" Type="Int32" />
</DeleteParameters>
</asp:ObjectDataSource>
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -