Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 4th, 2008, 10:42 AM
Registered User
Join Date: Feb 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Search Result

Hello everyone, I just want to say thanks for all the replies.

Im creating a search feature against the adventure works DB for tables ProductCategory and Product.

The search result that Im looking for is the Product Category Name will be the header and the Product listing is associated with its proper category name.

This is the first thing that I thought of doing:

   Use nested gridview

   List all the category name first and associate the product that matches the search and if theres any category that's empty just simply hide it.

Is there an easier approach?

Old June 5th, 2008, 08:39 AM
Authorized User
Join Date: Jul 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts


try to use a datalist that retrieves all the categories that matches the search result. add a GridView Control to the ItemTemplate of the Datalist that displays the Products of a specific category and at the same matches the search. the HTml code will be something like this:

<Datalist ......................>
<asp:Label ID="CategoryName".....................></Label>
<asp:GridView ID="Products"........................></GridView>

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging for the search result ssvas BOOK: Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 ISBN: 978-0-470-12449-9 0 November 27th, 2008 03:02 AM
Display Search Engine result in table using JSP sbc789 JSP Basics 3 December 3rd, 2007 11:35 PM
GridView and SQL More than one result = one result DarkForce ASP.NET 2.0 Basics 0 July 20th, 2007 04:29 AM
helph with search n disp on result to link Calibus Classic ASP Databases 3 July 8th, 2004 01:13 PM
how to search on multiple sites and showing result cyberviral Classic ASP Basics 0 March 23rd, 2004 09:08 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.