复件 CategoryList.ascx
资源名称:SHOPASP.rar [点击查看]
上传用户:xiecaij
上传日期:2015-02-08
资源大小:2016k
文件大小:1k
源码类别:
百货/超市行业
开发平台:
ASP/ASPX
- <%@ Control Language="c#" AutoEventWireup="false" Codebehind="CategoryList.ascx.cs" Inherits="eshop.CategoryList" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
- <table width="145" border="0" height="100%">
- <tr valign="top" height="100%">
- <td colspan="2" bgcolor="#f6e19e">
- <asp:DataList id="MyList" runat="server" cellpadding="3" cellspacing="0" width="145"
- SelectedItemStyle-BackColor="dimgray" EnableViewState="false">
- <ItemTemplate>
- <asp:HyperLink cssclass="MenuUnselected" id="HyperLink1"
- Text='<%# DataBinder.Eval(Container.DataItem, "CategoryName") %>'
- NavigateUrl='<%# "../Productlist.aspx?categoryID="
- + DataBinder.Eval(Container.DataItem, "categoryId")
- + "&selection=" + Container.ItemIndex %>' runat="server" />
- </ItemTemplate>
- <SelectedItemTemplate>
- <asp:HyperLink cssclass="MenuSelected" id="HyperLink2"
- Text='<%# DataBinder.Eval(Container.DataItem, "CategoryName") %>'
- NavigateUrl='<%# "../productlist.aspx?categoryID="
- + DataBinder.Eval(Container.DataItem, "categoryId")
- + "&selection=" + Container.ItemIndex %>' runat="server" />
- </SelectedItemTemplate>
- </asp:DataList>
- </td>
- </tr>
- </table>