Mercurial > pub > bltoolkit
comparison Demo/Asp.Net/Web/Controls/SearchControl.ascx @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
1 <%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchControl.ascx.cs" Inherits="PetShop.Web.SearchControl" %> | |
2 <%@ OutputCache Duration="100000" VaryByParam="page;keywords" Shared="true" %> | |
3 <%@ Register TagPrefix="PetShopControl" Namespace="PetShop.Web" %> | |
4 | |
5 <div align="center" class="searchPosition"> | |
6 <div class="label">Search results for <b><%= Request.QueryString["keywords"] %></b>:</div> | |
7 <PetShopControl:CustomList ID="searchList" runat="server" EmptyText="No products found." OnPageIndexChanged="PageChanged" PageSize="4" RepeatColumns="2" CellPadding="16" CellSpacing="0" Width="500px"> | |
8 <ItemTemplate> | |
9 <table cellpadding="0" cellspacing="0"> | |
10 <tr> | |
11 <td valign="top" width="91"><a href='Items.aspx?productId=<%# Eval("ID") %>&categoryId=<%# Eval("CategoryID") %>'><img id="imgProduct" alt='<%# Eval("Name") %>' src='<%# Eval("Image") %>' style="border-width: 0px;" runat="server" /></a></td> | |
12 <td width="26"> </td> | |
13 <td valign="top" width="120"><a href='Items.aspx?productId=<%# Eval("ID") %>&categoryId=<%# Eval("CategoryID") %>'><div class="productName"><%# Eval("Name") %></div></a><div class="productDescription"><%# Eval("Description") %></div></td> | |
14 </tr> | |
15 </table> | |
16 </ItemTemplate> | |
17 <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" /> | |
18 </PetShopControl:CustomList> | |
19 </div> |