ShoppingPlatForm------的几个用户控件
一:head.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="head.ascx.cs" Inherits="head" ClassName="head"%>
<center>
<table width="764px">
<tr>
<td style="width: 758px; font-size: 20pt; color: White; height: 81px; background-color: #43A0AB" align="center">
ASP.NET 2.0 电子商务购物平台
</td>
</tr>
<tr>
<td style="width: 758px; color: #ffffff; background-color: #43A0AB;" align="center">
<a href="~\default.aspx"> <span style="color: #ffffff">首页</span></a>
<a href="~\ProductHot.aspx"> <span style="color: #ffffff">热销商品</span></a>
<a href="~\queryOrder.aspx" target="_blank"> <span style="color: #ffffff">订单管理</span></a>
<a href="~\shoppingCart.aspx"> <span style="color: #ffffff">购物车</span></a>
<a href="~\checkOut.aspx"> <span style="color: #ffffff">结算中心</span></a>
<a href="~\userRegister.aspx"> <span style="color: #ffffff">注册会员</span></a>
<a href="~\userEntry.aspx"> <span style="color: #ffffff">用户登陆</span></a>
<a href="~\guestBook.aspx"> <span style="color: #ffffff">顾客留言</span></a>
</td>
</tr>
</table>
</center>
二:NewProduct.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewProduct.ascx.cs" Inherits="shop.controls.NewProduct" Debug="true" %>
<asp:DataList ID="NewProductDataList" runat="server" RepeatColumns="3" Width="472px" RepeatDirection="Horizontal">
<ItemTemplate>
<table style="Height: 93px" cellpadding="0" cellspacing="0" width="186px" border="0">
<tr>
<td valign="top" style="width: 90px; height:92px">
<a href='ProductDetail.aspx?ProductId=<%# DataBinder.Eval(Container.DataItem, "ProductId") %>'>
<img height="90px" alt="商品图片" src='<%# DataBinder.Eval(Container.DataItem, "PPicture") %>' width="85px" style="border: 0px"/>
</a>
</td>
<td valign="top" style="width: 144px">
<a title="查看详细资料" href='ProductDetail.aspx?ProductId=<%# DataBinder.Eval(Container.DataItem, "ProductId") %>'>
<%# DataBinder.Eval(Container.DataItem,"PName") %>
</a>
<br />
原价:<del>$yen;<%# DataBinder.Eval(Container.DataItem, "PPrice") %></del>
<br />
现价:<del>$yen;<%# DataBinder.Eval(Container.DataItem, "PMemberPrice") %></del>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
三:NewsList.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsList.ascx.cs" Inherits="NewsList" %>
<div style="width: 168px; height: 19px; display: inline;" runat="server" id="NewListDiv">
<font face="宋体"></font>
</div>
四:ProductSearch.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductSearch.ascx.cs" Inherits="ProductSearch" %>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>类别
<asp:DropDownList ID="DropDownListClassA" runat="server" DataTextField="AClassName" DataValueField="AClassId"
AutoPostBack="true" Width="104px" OnSelectedIndexChanged="DropDownListClassA_SelectedIndexChanged">
<asp:ListItem Value="请选择类别">请选择类别</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="DropDownListClassB" runat="server" DataTextField="BClassName" DataValueField="BClassId"
AutoPostBack="true" Width="104px">
<asp:ListItem Value="请选择类别">请选择类别</asp:ListItem>
</asp:DropDownList>
</td>
<td>   商品名称
<asp:TextBox ID="txtName" runat="server" Width="80px"></asp:TextBox>
价格
<asp:TextBox ID="txtStartPrice" runat="server" Width="30px"></asp:TextBox>
到
<asp:TextBox ID="txtEndPrice" runat="server" Width="30px"></asp:TextBox>
元
</td>
<td align="center"> 
<asp:Button ID="ButtonSearch" runat="server" Text="查询" Width="70px" Height="30px" OnClick="ButtonSearch_Click" />
</td>
</tr>
</table>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="head.ascx.cs" Inherits="head" ClassName="head"%>
<center>
<table width="764px">
<tr>
<td style="width: 758px; font-size: 20pt; color: White; height: 81px; background-color: #43A0AB" align="center">
ASP.NET 2.0 电子商务购物平台
</td>
</tr>
<tr>
<td style="width: 758px; color: #ffffff; background-color: #43A0AB;" align="center">
<a href="~\default.aspx"> <span style="color: #ffffff">首页</span></a>
<a href="~\ProductHot.aspx"> <span style="color: #ffffff">热销商品</span></a>
<a href="~\queryOrder.aspx" target="_blank"> <span style="color: #ffffff">订单管理</span></a>
<a href="~\shoppingCart.aspx"> <span style="color: #ffffff">购物车</span></a>
<a href="~\checkOut.aspx"> <span style="color: #ffffff">结算中心</span></a>
<a href="~\userRegister.aspx"> <span style="color: #ffffff">注册会员</span></a>
<a href="~\userEntry.aspx"> <span style="color: #ffffff">用户登陆</span></a>
<a href="~\guestBook.aspx"> <span style="color: #ffffff">顾客留言</span></a>
</td>
</tr>
</table>
</center>
二:NewProduct.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewProduct.ascx.cs" Inherits="shop.controls.NewProduct" Debug="true" %>
<asp:DataList ID="NewProductDataList" runat="server" RepeatColumns="3" Width="472px" RepeatDirection="Horizontal">
<ItemTemplate>
<table style="Height: 93px" cellpadding="0" cellspacing="0" width="186px" border="0">
<tr>
<td valign="top" style="width: 90px; height:92px">
<a href='ProductDetail.aspx?ProductId=<%# DataBinder.Eval(Container.DataItem, "ProductId") %>'>
<img height="90px" alt="商品图片" src='<%# DataBinder.Eval(Container.DataItem, "PPicture") %>' width="85px" style="border: 0px"/>
</a>
</td>
<td valign="top" style="width: 144px">
<a title="查看详细资料" href='ProductDetail.aspx?ProductId=<%# DataBinder.Eval(Container.DataItem, "ProductId") %>'>
<%# DataBinder.Eval(Container.DataItem,"PName") %>
</a>
<br />
原价:<del>$yen;<%# DataBinder.Eval(Container.DataItem, "PPrice") %></del>
<br />
现价:<del>$yen;<%# DataBinder.Eval(Container.DataItem, "PMemberPrice") %></del>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
三:NewsList.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsList.ascx.cs" Inherits="NewsList" %>
<div style="width: 168px; height: 19px; display: inline;" runat="server" id="NewListDiv">
<font face="宋体"></font>
</div>
四:ProductSearch.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductSearch.ascx.cs" Inherits="ProductSearch" %>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>类别
<asp:DropDownList ID="DropDownListClassA" runat="server" DataTextField="AClassName" DataValueField="AClassId"
AutoPostBack="true" Width="104px" OnSelectedIndexChanged="DropDownListClassA_SelectedIndexChanged">
<asp:ListItem Value="请选择类别">请选择类别</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="DropDownListClassB" runat="server" DataTextField="BClassName" DataValueField="BClassId"
AutoPostBack="true" Width="104px">
<asp:ListItem Value="请选择类别">请选择类别</asp:ListItem>
</asp:DropDownList>
</td>
<td>   商品名称
<asp:TextBox ID="txtName" runat="server" Width="80px"></asp:TextBox>
价格
<asp:TextBox ID="txtStartPrice" runat="server" Width="30px"></asp:TextBox>
到
<asp:TextBox ID="txtEndPrice" runat="server" Width="30px"></asp:TextBox>
元
</td>
<td align="center"> 
<asp:Button ID="ButtonSearch" runat="server" Text="查询" Width="70px" Height="30px" OnClick="ButtonSearch_Click" />
</td>
</tr>
</table>