Step 6: Add your Web Part to a Page

In this step, you import the Web Part to a page in any SharePoint site and test it by connecting it to any of the out-of-the-box filters available with Microsoft Office SharePoint Server 2007, such as the Text or the Authored List filter. This topic explains the steps for testing it with the Text filter.

To add and test your Web Part

  1. Navigate to the Web Part Page on your SharePoint site where you want to add the Web Part.

  2. In the Web Part Page, click Site Actions, and select Edit Page.

  3. In the Web Part zone where you want to add the filter consumer Web Part, click Add a Web Part.

  4. In the Web Part picker, choose Text in the Filter section and SimpleFilterConsumerWebPart in the Miscellaneous section. Click OK to close the Web Part picker.

  5. In the Text filter Web Part, click the tool pane link.

  6. In the Name field, type 'TestFilter', and click OK.

  7. In the TestFilter Web Part click Edit and choose Connections. Then select Send filter values to option and select the SimpleFilterConsumerWebPart option to connect the Web Parts.

  8. In the Configure Connection Web Page dialog, click Finish to confirm the parameter mapping.

  9. Type any text in the TestFilter Web Part, and you should see the same string displayed in the SimpleFilterConsumerWebPart. You can try this procedure with the other out-of-the-box filters such as Authored List and Date filters.