SEO Paging

  • 2 min to read

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

ASPxGridView allows you to make a 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. Thus, search engines can index an entire grid 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, clicking a pager link does not post back to the same page, but generates a completely new request. As a result, a totally new page is created on the server, and information about the previous page state is lost. By design, 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, row expansion states, etc.) are not preserved. Thus, to keep grid appearance consistent and grid content relevant for all pages, we recommend that you enable the 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: http://demos.devexpress.com/ASPxGridViewDemos/PagingAndScrolling/SEOFriendly.aspx