📄 product.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Product.aspx.cs" Inherits="Manger_Product" %>
<!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 style ="font-family :宋体; font-size :9pt;">
<form id="form1" runat="server">
<div>
<table cellSpacing="0" cellPadding="0" width="640" align="center" border="0">
<tr>
<th class="tableHeaderText" height="25" align="left">
商品管理</th>
<tr>
</tr>
</table>
<table cellSpacing="0" cellPadding="0" width="640" align="center" border="0">
<tr>
<td align="center">搜索:
<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
<asp:Button id="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click"></asp:Button>
</td>
</tr>
<tr>
<td >
<br />
<asp:GridView ID="gvGoodsInfo" runat="server" CellPadding="4" Width="100%" HorizontalAlign="Center" DataKeyNames ="GoodsID"
HeaderStyle-CssClass="summary-title" AutoGenerateColumns="False" OnPageIndexChanging="gvGoodsInfo_PageIndexChanging" OnRowDeleting="gvGoodsInfo_RowDeleting" AllowPaging="True" PageSize="5" >
<HeaderStyle Font-Bold="True" CssClass="summary-title"></HeaderStyle>
<Columns>
<asp:BoundField DataField="GoodsID" HeaderText="商品ID" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="GoodsName" HeaderText="商品名称">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField HeaderText ="商品类别">
<HeaderStyle HorizontalAlign =Center />
<ItemStyle HorizontalAlign =Center />
<ItemTemplate >
<%# GetClass(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ClassID").ToString())) %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText ="商品会员价">
<HeaderStyle HorizontalAlign =Center />
<ItemStyle HorizontalAlign =Center />
<ItemTemplate >
<%# GetVarStr(DataBinder.Eval(Container.DataItem, "MemberPrice").ToString())%>¥
</ItemTemplate>
</asp:TemplateField>
<asp:HyperLinkField HeaderText="详细信息" Text="详细信息" DataNavigateUrlFields="GoodsID" DataNavigateUrlFormatString="EditProduct.aspx?GoodsID={0}" >
<ControlStyle Font-Underline="False" ForeColor="Black" />
<ItemStyle HorizontalAlign="Center" />
</asp:HyperLinkField>
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" >
<ControlStyle Font-Underline="False" ForeColor="Black" />
<ItemStyle HorizontalAlign="Center" />
</asp:CommandField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -