📄 product.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Product.aspx.cs" Inherits="Desktop_Product" %>
<%@ Register Src="../UserControl/OperationUC.ascx" TagName="OperationUC" TagPrefix="ucOperation" %>
<%@ Register Src="../UserControl/NotifyUC.ascx" TagName="NotifyUC" TagPrefix="ucNotify" %>
<%@ Register Src="../UserControl/NewsUC.ascx" TagName="NewsUC" TagPrefix="ucNews" %>
<!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>
<link href="../Css/BaseCss.css" type="text/css" rel="stylesheet" />
</head>
<body style="margin:0px;">
<form id="form1" runat="server">
<table border="0" cellpadding="0" width="780px" cellspacing="0" align="center" style="BORDER-COLLAPSE: collapse; text-align: center;" class="Text">
<tr>
<td align="center" style="width:100%;" colspan="2"></td>
</tr>
<tr>
<td align="center" style="width: 200px;" valign="top" class="Text">
<table border="0" cellpadding="0" width="200px" cellspacing="0" style="BORDER-COLLAPSE: collapse;" class="Text">
<tr>
<td><ucOperation:OperationUC ID="MyOperationUC" runat="server" /></td>
</tr>
<tr>
<td runat="server" id="OperationPanel"></td>
</tr>
<tr>
<td><ucNotify:NotifyUC id="MyNotifyUC" runat="server"></ucNotify:NotifyUC></td>
</tr>
<tr>
<td><ucNews:NewsUC id="MyNewsUC" runat="server"></ucNews:NewsUC></td>
</tr>
<tr>
<td></td>
</tr>
</table>
</td>
<td align="center" style="width: 580px;" valign="top">
<table width="580px">
<tr>
<td align="center" style="width:100%;" valign="top">
<asp:DataList ID="ProductList" runat="server" Width="100%" RepeatDirection="Horizontal" RepeatColumns="8">
<SelectedItemStyle CssClass="TabBg" BackColor="MistyRose"></SelectedItemStyle>
<ItemStyle HorizontalAlign="Center" Height="25px" BorderWidth="0px" Width="100px"></ItemStyle>
<ItemTemplate>
<a href='product.aspx?CategoryID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %>'><%# DataBinder.Eval(Container.DataItem,"Desn") %></a>
</ItemTemplate>
<SelectedItemTemplate>
<span class="SelectedTab"><%# DataBinder.Eval(Container.DataItem,"Desn") %></span>
</SelectedItemTemplate>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</asp:DataList>
</td>
</tr>
<tr>
<td align="center" style="width: 580px;" valign="top">
<asp:GridView ID="ProductView" CssClass="Text" runat="server" Width="100%" AutoGenerateColumns="False" DataKeyNames="ProductID" ShowHeader="False" OnRowCommand="ProductView_RowCommand" OnRowCreated="ProductView_RowCreated">
<FooterStyle ForeColor="White" BackColor="#3B6BD1" Font-Bold="True"></FooterStyle>
<SelectedRowStyle Font-Bold="True" ForeColor="Navy" BackColor="#FFCC66" BorderColor="CornflowerBlue" />
<RowStyle ForeColor="#333333" BackColor="#FFFBD6" BorderColor="CornflowerBlue" BorderStyle="Solid" BorderWidth="1px" />
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table cellpadding="2" cellspacing="0" width="100%" border="0" class="Text">
<tr>
<td>
<a href='../Admin/Product/ProductInfo.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem,"ProductID")%>' target="_blank"><asp:Image ID="ProductPicture" Runat="server" Width="90" Height="120"></asp:Image></a>
</td>
<td style="width: 100%;" valign="top">
<table cellpadding="0" cellspacing="0" border="0" class="Text" style="width: 100%;">
<tr><td style="width: 50%;" align="left" valign="top">
<table cellpadding="0" style="width: 100%;" cellspacing="0" border="0">
<tr>
<td><strong class="Title">商品名称:</strong><a href='../Admin/Product/ProductInfo.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem,"ProductID")%>' target="_blank"><%# DataBinder.Eval(Container.DataItem,"Name")%></a>
</td>
</tr>
<tr>
<td><strong class="Title">商品价格:</strong><asp:Label ID="Price" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"OutPrice")%>'></asp:Label>
</td>
</tr>
</table>
</td>
<td style="width: 50%;" align="left" valign="top">
<table cellpadding="0" style="width: 100%;" cellspacing="0" border="0" class="Normal">
<tr>
<td><strong class="Title">生产厂家:</strong><%# DataBinder.Eval(Container.DataItem,"Sell")%></td>
</tr>
<tr>
<td><strong class="Title">生产日期:</strong><%# DataBinder.Eval(Container.DataItem,"CreateDate")%></td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="2" align="left"><strong class="Title">详细介绍:</strong><br /><%# DataBinder.Eval(Container.DataItem,"Desn")%></td></tr>
<tr><td colspan="2" align="left"><hr size="1" /></td></tr>
<tr><td colspan="2" align="left"><a href='../Admin/Product/ProductInfo.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem,"ProductID")%>' target="_blank">
商品详细信息</a> <a href='../Desktop/Comment.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem,"ProductID")%>' target="_blank">
查看商品评论</a>
<asp:Button ID="BuyBtn" Runat="server" CssClass="ButtonCss" Text="加入购物车" Width="80" CommandName='<%#DataBinder.Eval(Container.DataItem,"Name") %>'></asp:Button></td></tr>
</table>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -