Step 1: Set Up the Project for the Custom Web Part
This walkthrough describes how you can create the custom federated search Web Part by using Microsoft Visual Studio 2005. Step 1 describes how to set up the project for the Web Part. it includes the following tasks:
Creating the Web Part project
Adding required references to your project
Creating a class file for the Web Part
Procedures
To create the project for the Web Part
In Visual Studio 2005, on the File menu, point to New, and then click Project.
In Project types, under C#, click Windows.
Under Templates, click Web Control Library.
In the Name field, type CustomFederatedResultsSample, and then click OK.
Next, you must add required references to your Web Part project.
To add references to the SearchBDCWebPart project
On the Project menu, click Add Reference.
On the .NET tab, select each of the following references (click OK after each selection):
Microsoft Office Server component (Microsoft.Office.Server.dll)
Microsoft Search component (Microsoft.Office.Server.Search.dll)
Windows SharePoint Services (Microsoft.SharePoint.dll)
Before you add code for the Web Part, replace the default class file with a new class file.
To create the class file for the Web Part
In Solution Explorer, right-click WebCustomControl1.cs, and then click Delete to remove the default class created with the project.
On the Project menu, click Add New Item.
In the Add New Item dialog box, click Web Custom Control, type PerUserAuthWebPart.cs, and then click Add.
Next Steps
Step 2: Add the Code for the Custom Web Part [Search Server 2008]
Step 3: Deploy the Custom Web Part [Search Server 2008]
See Also
Concepts
Creating a Custom Federated Search Web Part with a Credentials UI [Search Server 2008]
Federated Search Overview [Search Server 2008]