母版页
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Front.Master.cs" Inherits="WebShop.front" %>
<!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 id="Head1" runat="server">
<title></title>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server" style="position: fixed; right: auto ;left:auto; clear: both; top:15px; width: 1050px; height: 1350px; ">
<table align="center" style="margin-left:150px; height: 1352px; width: 814px;">
<tr>
<td>
<div id="divHead" class="HeadCss">
<table class="head-table">
<tr>
<td colspan="2">
<table>
<tr>
<td rowspan="2" class="auto-style2">
<img alt="igou" src="Images/logoShop.jpg" style="width: 345px; height: 64px" />
</td>
<td class="auto-style1">
</td>
<td>
<img alt="" src="Images/login.gif" style="width: 18px; height: 18px" />
<asp:HyperLink ID="hlinkLogin" runat="server" NavigateUrl="~/Login.aspx">登录</asp:HyperLink> | <asp:HyperLink ID="hlinkRegist" runat="server" NavigateUrl="~/Register.aspx">注册</asp:HyperLink>
</td>
<td class="auto-style13">
<img alt="" src="Images/cart.gif" style="width: 26px; height: 19px; margin-left: 12px;" /></td>
<td style="text-align: center;" class="style3">
</td>
</tr>
<tr>
<td colspan="4" class="style4">
<table style="margin-left: 2px; text-align: left; width: 529px;">
<tr>
<td class="auto-style8">
<span class="auto-style14">关键字</span>
</td>
<td class="auto-style15">
<asp:TextBox ID="txtSearchKey" runat="server" Width="170px" Height="21px" style="margin-left: 0px"></asp:TextBox>
</td>
<td class="auto-style8">
<asp:ImageButton ID="ImageButtonSearch" runat="server" ImageUrl="~/Images/f_bt.gif"
OnClick="ImageButtonSearch_Click" />
</td>
<td class="auto-style7">
<img alt="igou" src="Images/hotline.jpg" style="width: 172px; height: 61px" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<div class="head-banner" id="foot">
<br />
<br />
</div>
</td>
</tr>
<tr>
<td style="width: 250px">
<asp:SiteMapPath ID="SiteMapPath1" runat="server">
</asp:SiteMapPath>
</td>
<td align="right">
<asp:Label ID="labUser" runat="server" Text=""></asp:Label>
<asp:Image ID="img_Cart" runat="server" ImageUrl="~/Images/cart.gif" Visible="False" />
<asp:LinkButton ID="linkBtn_mycart" runat="server" PostBackUrl="~/Cart.aspx" Visible="False">我的购物车</asp:LinkButton>
<asp:Label ID="Label1" runat="server" Text=" | " Visible="False"></asp:Label>
<asp:LinkButton ID="linkBtn_Exit" runat="server" OnClick="linkBtn_Exit_Click" Visible="False">注销</asp:LinkButton>
<asp:LinkButton ID="linkBtn_MyOrder" runat="server" OnClick="linkBtn_MyOrder_Click"
Visible="false">我的订单</asp:LinkButton>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<table style="border-style: none; border-color: inherit; border-width: 0px; width: 905px; border-spacing: 0px; clear: both; margin-right: 87px;" cellpadding="0"
cellspacing="0">
<tr>
<td>
<div id="divMain_Left" class="Main_Left">
<table>
<tr>
<td>
<img src="Images/sort.gif" style="width: 174px; height: 43px; margin-left: 0px;" alt="" />
</td>
</tr>
<tr>
<td style="vertical-align: bottom;" class="auto-style16">
</td>
</tr>
</table>
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="XmlDataSource1" Width="164px" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged" style="font-size: medium; text-align: left">
<DataBindings>
<asp:TreeNodeBinding DataMember="Categry" NavigateUrlField="#InnerText" TextField="Categry"
ValueField="Categry" />
<asp:TreeNodeBinding DataMember="CategryChild" NavigateUrlField="#InnerText" TextField="CategryChild"
ValueField="CategryChild" />
</DataBindings>
</asp:TreeView>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/Categry.xml"></asp:XmlDataSource>
</div>
</td>
<td valign="top" class="auto-style17">
<div id="divMain_Contain" class="Main_Contain" ">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div id="divFooter" class="Footer">
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
内容页:
<%@ Page Title="" Language="C#" MasterPageFile="~/Front.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="UI.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>