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:
A server with Microsoft Office SharePoint Server 2007 installed
Microsoft Visual Studio 2005 or a similar Microsoft .NET Framework 2.0-compatible development tool installed
AdventureWorks SQL Server 2000 Sample completed
You have complete Walkthrough: Configuring Search for the AdventureWorks Business Data Application Sample
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