Walkthrough: Creating an ASP.NET Web Part for the AdventureWorks Business Data Application Sample

To separate the search results from a Business Data Catalog application from the regular search results a user sees on the Documents tab in the Search Center, you can create a new tab and custom search pages for business data searches. When you create a custom search page for a business data search, you can use the existing Search Web Parts, and configure them to search business data. Walkthrough: Add a Tab and Custom Search Page with Enterprise Search Web Parts to the Search Center describes the steps to do this.

If you find that these Web Parts do not meet your requirements you can create custom Web Parts that use the Query object model to replace the Search Web Parts.

This walkthrough guides you through the steps to create a custom Microsoft ASP.NET Web Part to search content from the AdventureWorks2000 sample, and add it to your site's Search Center.

Prerequisites

Before you begin this walkthrough, make sure you have the following in your development environment:

Completing the Walkthrough

The following topics walk you through creating a custom Search Web Part for the AdventureWorks Business Data Application sample:

Step 1: Set Up the Project for the Custom Search Web Part

Step 2: Add the Code for the Custom Search Web Part

Step 3: Create the XSLT Transformation Code

Step 4: Deploy the Custom Search Web Part

Step 5: Testing the Search BDC Web Part