Skip to main content

SEO Paging

  • 2 minutes to read

A known issue with grid controls is that search engines ignore pagers. When search engines index a site, they use only the information contained within the first page. The reason for this is that pager links are usually not hyperlinks to other pages. Pager links respond to click events to raise data update callbacks instead.

ASPxGridView allows you to make an SEO-friendly pager. Use the ASPxGridPagerSettings.SEOFriendly property for this purpose.

If this property is set to SEOFriendlyMode.CrawlerOnly, ASPxGridView renders hyperlinks in the pager when a web-crawler is detected. For other visitors, standard pager links are generated. The result is that search engines can index an entire grid’s content, and site visitors experience the same callback functionality.

If the property is set to SEOFriendlyMode.Enabled or SEOFriendlyMode.Disabled, automatic web crawler detection is disabled. The pager renders either SEO-friendly or standard links, respectively.

Note

If the ASPxGridPagerSettings.SEOFriendly property is set to SEOFriendlyMode.Enabled, each pager button link refers to a unique address. In this case, a click on a pager link does not post back to the same page, but generates a completely new request. As a result, a new page is created on the server, and information about the previous page state is lost. In this mode, only information about the sorting and grouping applied to the ASPxGridView control is preserved using specific request parameters. Other grid states (such as applied filter criteria, column order, row selection, and row expansion states) are not preserved. To keep grid appearance consistent and grid content relevant for all pages, we recommend that you enable SEO mode only for grids that use minimum functional features such as sorting and/or grouping.

To see the SEO-friendly paging feature in action, refer to the “Data Paging and Scrolling - SEO Friendly Paging“ demo. It can be accessed online at: https://demos.devexpress.com/ASPxGridViewDemos/PagingAndScrolling/SEOFriendly.aspx