Displaying search results in a Website
<p>I am working on a website where i need to search for items from database and display it in page.I am using <code>Datalist</code> for displaying all the items .Now i need to display all the items according to some category.For example if i search for a <code>two-wheeler</code> it may have many categories or manufacturer's.Now I want to display it separately according to the categories.I can use many datalist to do that,but it will slow down the site.Instead which control can i use to do this.I searched the web but got no idea.So please give me sugessions to go about it.Any sugessions will be appreciated. </p>

<p><strong>Code</strong>:</p>

<pre><code> &lt;asp:DataList ID="Dlitems" runat="server" RepeatDirection="Horizontal"  RepeatColumns="4"
                        CellPadding="0" CellSpacing="15"&gt;
         &lt;ItemTemplate&gt;
              &lt;table&gt;
                  &lt;tr&gt;
                    &lt;td&gt;
                      &lt;asp:ImageButton ID="ImgbtnProductImage" CssClass="imgdisp" ImageUrl='&lt;%# Eval("ImagePath") %&gt;'
                                                    CommandArgument='&lt;%#Eval("ProductCode") %&gt;' runat="server" CommandName="cmdView" /&gt;
                    &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                     &lt;td&gt;
                       &lt;table&gt;
                           &lt;tr&gt;
                              &lt;td width="20px"&gt;&lt;/td&gt;
                              &lt;td&gt;
                                             &lt;img src="../Database/images/inr.jpg" alt="addtocart" /&gt;
                                             &lt;asp:Label ID="lblproductprice" runat="server" Text='&lt;%# Eval("Price") %&gt;' CssClass="lbl" /&gt;
                                           &lt;/td&gt;
                              &lt;td&gt;
                                              &lt;asp:ImageButton ID="imgbtnaddtocart" runat="server" Height="25px" Width="25px" ImageUrl="~/Database/images/addtocart.JPG"
                                                                ToolTip="Add to Cart" CommandArgument='&lt;%#Eval("ProductCode")+","+ Eval("ProductName")+","+ Eval("ImagePath")+","+ Eval("Price")+","+ Eval("LongDescription") %&gt;'
                                                                CommandName="addtocart" /&gt;
                                            &lt;/td&gt;
                           &lt;/tr&gt;
                       &lt;/table&gt;
                     &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
         &lt;/ItemTemplate&gt;
    &lt;/asp:DataList&gt;
</code></pre>
