Jaa


Working With the Search Paging Web Part

The Search Paging Web Part lets the shopper iterate through the search results. The shopper can specify a property to sort by and the number of search result items to display per page. The Web Part also displays the range of records that are being displayed on the current page. If no results are found, this Web Part is hidden.

The Search Paging Web Part must be connected to a Search Results Web Part. The Search Results Web Part provides information about total records found.

This is a UserControl-based Web Part.

Web Part

The following figure shows the Search Paging Web Part.

Dd328453.vugsearchpagingwebpart(en-US,CS.90).gif

Adding the Web Part to a Page

To connect to a Search Results Web Part, add the Search Results Web Part to the page. Use the edit option on the Search Paging Web Part, select Connections, then select "Get Search Results Count Parameter from", and then select the Search Results Web Part.

Property Sheet

The following figure shows the Search Paging Web Part property sheet. The Search Paging Web Part property sheet lets site designers control some aspects of the Web Part's behavior and appearance. The property sheet is displayed by selecting the edit option on the Web Page (in Edit Page mode) and then selecting Modify Shared Web Part. This displays the property sheet. Expand the sections to see the relevant properties.

Dd328453.Vug_SearchPaging_WebPart_Properties(en-US,CS.90).gif

Properties

The following table lists and describes the properties for the Search Paging Web Part.

Property

Type

Description

Default value

Display "Sort By" drop-down

Boolean

If checked, causes the Web Part to display the "sort by" drop-down which allows the user to change the field being used to sort.

True

Display "# results per page" drop-down

Boolean

If checked, causes the Web Part to display a drop-down allowing the user to select a number of results per page

True

Minimum selectable # of results per page

Int

Sets the lower-bound for the number of results per page that a user can select. This setting, combined with the "minimum # of results per page" setting, will determine the range of options displayed in the "results per page" drop-down.

10

Maximum selectable # of results per page

Int

Sets the upper-bound for the number of results per page that a user can select. This setting, combined with the "minimum # of results per page" setting, will determine the range of options displayed in the "results per page" drop-down.

20

"Previous" link text

String

Sets the text displayed on the "previous" link.

Prev

"Previous" link image URL

String

Sets the file URL of the image displayed on the "previous" link.

Blank

"Next" link text

String

Sets the text displayed on the "next" link.

Next

"Next" link image URL

String

Sets the file URL of the image displayed on the "next" link.

Blank

Maximum # of page links before current

Int

Sets the number of page links to display before the current page number, after which the remaining page numbers are ellipsed.

3

Maximum # of page links after current

Int

Sets the number of page links to display after the current page number, after which the remaining page numbers are ellipsed.

3

"Page" text

String

Sets the text displayed before the number of the current page.

Page

"Results per page" label text

String

Sets the text displayed beside the "results per page" drop-down.

Results per page

"Sort by" label text

String

Sets the text displayed beside the "sort by" drop-down.

Sort by

"Showing records" text

String

Sets the text displayed beside the display of the current range of results.

Showing records {0} to {1} out of {2}

See Also

Other Resources

Search Paging Web Part

Catalog Web Parts