📄 goodsmanage.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GoodsManage.aspx.cs" Inherits="AdminManage_GoodsManage" %>
<!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>
<table style="width: 529px; height: 334px; font-size: 9pt; background-image: url(../Image/例图/后台/后台页.jpg);" cellpadding="0" cellspacing="0" align="center">
<tr>
<td colspan="3" style="text-align: center">
<asp:Label ID="Label2" runat="server" Text="查询条件:"></asp:Label>
<asp:DropDownList ID="ddlCondition" runat="server">
<asp:ListItem Value="GoodsName">商品名称</asp:ListItem>
<asp:ListItem Value="GoodsTypeName">商品类别</asp:ListItem>
<asp:ListItem Value="GoodsIsNew">是否推荐</asp:ListItem>
</asp:DropDownList>
<asp:Label ID="Label1" runat="server" Text="关键字:"></asp:Label>
<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
<asp:Button ID="btnSel" runat="server" Text="查询" Height="20px" Width="58px" OnClick="btnSel_Click" />
</td>
</tr>
<tr>
<td colspan="3" style="height: 181px; text-align: center; vertical-align: top;">
<br />
<asp:GridView ID="gvGoodsInfo" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" OnRowDataBound="gvGoodsInfo_RowDataBound" OnRowDeleting="gvGoodsInfo_RowDeleting" AllowPaging="True" PageSize="8" OnPageIndexChanging="gvGoodsInfo_PageIndexChanging" Font-Size="9pt" Width="410px">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<EditRowStyle BackColor="#999999" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#CBCF7A" ForeColor="Black" HorizontalAlign="Right" />
<HeaderStyle BackColor="#CBCF7A" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:BoundField DataField="GoodsID" HeaderText="商品ID" />
<asp:BoundField DataField="GoodsName" HeaderText="商品名称" />
<asp:BoundField DataField="GoodsTypeName" HeaderText="商品类别" />
<asp:BoundField DataField="GoodsPrice" HeaderText="商品价格" />
<asp:BoundField DataField="GoodsIsNew" HeaderText="是否推荐" />
<asp:HyperLinkField HeaderText="详细信息" Text="详细信息">
<ControlStyle Font-Underline="False" ForeColor="Black" />
</asp:HyperLinkField>
<asp:CommandField HeaderText="删除" ShowDeleteButton="True">
<ControlStyle Font-Underline="False" ForeColor="Black" />
</asp:CommandField>
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align: top; height: 40px; text-align: center">
结果中查询:<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="GoodsName">商品名称</asp:ListItem>
<asp:ListItem Value="GoodsTypeName">商品类别</asp:ListItem>
<asp:ListItem Value="GoodsIsNew">是否推荐</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem Selected="True" Value="=">等于</asp:ListItem>
<asp:ListItem Value="<>">不等于</asp:ListItem>
<asp:ListItem Value="like">包含</asp:ListItem>
<asp:ListItem Value="not like">不包含</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="txt1" runat="server"></asp:TextBox>
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="结果中查询" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -