<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Brand.ascx.cs" Inherits="XpShop.WebUI.Modules.Brand" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<ul class="cat_menu">
   <%BindLeftNavTopCategory();%>
    <asp:Repeater Runat="server" ID="rptTopCategory">
        <ItemTemplate>
            <li>
	            <%# DataBinder.Eval(Container.DataItem,"Logo")%><a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>List.aspx?CatID=<%# DataBinder.Eval(Container.DataItem,"CategoryID") %><%}else{%>categories/Category_<%# DataBinder.Eval(Container.DataItem,"CategoryID")%>.<%=config.html%><%}%>'><%# DataBinder.Eval(Container.DataItem,"Name")%></a>
	            <ul>
		            <asp:Repeater Runat="server" ID="rptSubBrand"  DataSource='<%# GetBrand(DataBinder.Eval(Container.DataItem,"CategoryID").ToString())%>'>
	                    <ItemTemplate>
		                    <li>
			                    <a href='/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>List.aspx?BrandID=<%# DataBinder.Eval(Container.DataItem,"BrandID")%>'>
				                    <%# DataBinder.Eval(Container.DataItem,"BrandName")%>
			                    </a>
		                    </li>
	                    </ItemTemplate>
	                    <SeparatorTemplate><li>&nbsp;|&nbsp;</li></SeparatorTemplate>
                    </asp:Repeater>
	            </ul>   
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>

