📄 displayproduct.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DisplayProduct.aspx.cs" Inherits="DisplayProduct" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="0" cellpadding="0" cellspacing="0" style="width: 226px">
<tr>
<td align="center" style="width: 495px; height: 19px; font-size: x-large; background-color: #9933ff;">
ProductCategory</td>
</tr>
<tr>
<td style="width: 495px; height: 82px" valign="top">
<asp:DataList ID="DListProduct" runat="server" BackColor="LightGoldenrodYellow" BorderColor="Tan"
BorderWidth="1px" CellPadding="2" ForeColor="Black" OnItemCommand="DListProduct_ItemCommand">
<FooterStyle BackColor="Tan" />
<SelectedItemStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0" style="width: 488px">
<tr>
<td rowspan="4" valign="top" style="width: 46px">
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ProductImage") %>' /></td>
<td style="height: 19px">
<asp:Label ID="Label1" runat="server" Text='<%# Eval("ProductName") %>' ForeColor="Blue"></asp:Label></td>
</tr>
<tr>
<td style="height: 19px">
<asp:Label ID="Label2" runat="server" Text='<%# Eval("Description").ToString() %>'></asp:Label></td>
</tr>
<tr>
<td>
<asp:Label ID="Label3" runat="server" Text="Price:" Width="51px" ForeColor="Red"></asp:Label>
<asp:Label ID="Label4" runat="server" Text='<%# Eval("UnitCost","{0:c}") %>' Width="89px" Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="True" ForeColor="Lime"></asp:Label></td>
</tr>
<tr>
<td align="right" valign="top">
<asp:Button ID="Button1" runat="server" Text="Add to cart" Width="92px" CommandArgument='<%# Eval("ProductID") %>' CausesValidation="False"/></td>
</tr>
</table>
</ItemTemplate>
<AlternatingItemStyle BackColor="PaleGoldenrod" />
<HeaderStyle BackColor="Tan" Font-Bold="True" />
</asp:DataList></td>
</tr>
</table>
<br />
<br />
<table border="0" cellpadding="0" cellspacing="0" style="width: 493px; height: 19px">
<tr>
<td align="center" colspan="2" style="color: #00ff00; font-size: 25px; background-color: #e6ffff;">
Reviews<br />
<img src="images/1x1.gif" style="width: 23px" /></td>
</tr>
<tr>
<td colspan="2" valign="top">
<asp:DataList ID="DListReView" runat="server" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal">
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0" style="width: 494px">
<tr>
<td style="width: 97px; height: 19px">
Name:</td>
<td style="height: 19px">
<asp:Label ID="Label11" runat="server" Text='<%# Eval("Name") %>' Width="126px"></asp:Label></td>
</tr>
<tr>
<td style="height: 19px; width: 97px;">
E_mail:</td>
<td style="height: 19px">
<asp:Label ID="Label9" runat="server" Text='<%# Eval("Email") %>' Width="233px"></asp:Label></td>
</tr>
<tr>
<td style="width: 97px; height: 19px">
Rate:</td>
<td>
<asp:Image ID="Image2" runat="server" ImageUrl='<%# "~/images/"+Eval("Rating")+".gif" %>' /></td>
</tr>
<tr>
<td colspan="1" style="width: 97px; height: 19px" valign="top">
Comment:</td>
<td colspan="2" style="height: 19px">
<asp:Label ID="Label8" runat="server" Text='<%# Eval("Comments") %>' Width="363px" Height="45px"></asp:Label></td>
</tr>
</table>
</ItemTemplate>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<AlternatingItemStyle BackColor="#F7F7F7" />
<ItemStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
</asp:DataList>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="width: 498px">
<tr>
<td align="center" colspan="2" style="color: #00ff00; font-size: 25px; height: 58px; background-color: #ffffd9;">
Submite your Views<br />
<img src="images/1x1.gif" style="width: 22px" /></td>
</tr>
<tr>
<td style="width: 100px">
Your Name:</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" Width="145px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="*用户名必填!"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 100px; height: 24px">
Your Email:</td>
<td style="height: 24px">
<asp:TextBox ID="TextBox2" runat="server" Width="144px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox2"
ErrorMessage="*邮件格式不合法!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td style="height: 22px">
Rating:</td>
<td style="height: 22px">
<asp:DropDownList ID="DropDownList1" runat="server" Width="151px">
<asp:ListItem Value="0">请选择</asp:ListItem>
<asp:ListItem Value="5">Excellent</asp:ListItem>
<asp:ListItem Value="4">Very Good</asp:ListItem>
<asp:ListItem Value="3">Good</asp:ListItem>
<asp:ListItem Value="2">Average</asp:ListItem>
<asp:ListItem Value="1">Poor</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td>
Comments:</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" Height="100px" Width="386px" Rows="10" TextMode="MultiLine"></asp:TextBox></td>
</tr>
<tr>
<td style="height: 24px">
</td>
<td style="height: 24px">
<asp:Button ID="Button2" runat="server" Text="提 交" Width="66px" OnClick="Button2_Click" /></td>
</tr>
</table>
<br />
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -