Skip to main content
A newer version of this page is available.
All docs
V19.1
Tab

PagerSettingsEx.SEOFriendly Property

Gets or sets whether Search-Engine Optimization (SEO) mode is enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

[DefaultValue(SEOFriendlyMode.Disabled)]
public virtual SEOFriendlyMode SEOFriendly { get; set; }

Property Value

Type Default Description
SEOFriendlyMode **Disabled**

A SEOFriendlyMode enumeration value that specifies whether SEO mode is enabled.

Available values:

Name Description
Disabled

Disables SEO mode and automatic web-crawler detection. Standard pager links are generated.

Enabled

Enables SEO mode and disables automatic web-crawler detection. The pager renders its links as SEO-friendly hyperlinks.

CrawlerOnly

Hyperlinks are rendered in the pager only when a web-crawler is detected. In this instance, web-crawlers will iterate through all pages of a paged control. As a result, all data within the control will be indexed, page by page. For other visitors, standard pager links are generated.

Property Paths

You can access this nested property as listed below:

Show 32 property paths
Library Object Type Path to SEOFriendly
ASP.NET Controls and MVC Extensions ASPxCardView
.SettingsPager.SEOFriendly
ASPxDataView
.PagerSettings.SEOFriendly
ASPxGantt
.SettingsPager.SEOFriendly
ASPxGridView
.SettingsPager.SEOFriendly
ASPxImageGallery
.PagerSettings.SEOFriendly
ASPxNewsControl
.PagerSettings.SEOFriendly
ASPxPivotGrid
.OptionsPager.SEOFriendly
ASPxTreeList
.SettingsPager.SEOFriendly
ASPxVerticalGrid
.SettingsPager.SEOFriendly
GridViewProperties
.SettingsPager.SEOFriendly
CardViewSettings
.SettingsPager.SEOFriendly
CardViewSettings<CardType>
.SettingsPager.SEOFriendly
DataViewSettings
.PagerSettings.SEOFriendly
GridViewSettings
.SettingsPager.SEOFriendly
GridViewSettings<RowType>
.SettingsPager.SEOFriendly
ImageGallerySettings
.PagerSettings.SEOFriendly
MVCxCardView
.SettingsPager.SEOFriendly
MVCxDataView
.PagerSettings.SEOFriendly
MVCxGantt
.SettingsPager.SEOFriendly
MVCxGridView
.SettingsPager.SEOFriendly
MVCxGridViewProperties
.SettingsPager.SEOFriendly
MVCxImageGallery
.PagerSettings.SEOFriendly
MVCxPivotGrid
.OptionsPager.SEOFriendly
MVCxTreeList
.SettingsPager.SEOFriendly
MVCxVerticalGrid
.SettingsPager.SEOFriendly
PivotGridSettings
.OptionsPager.SEOFriendly
TreeListSettings
.SettingsPager.SEOFriendly
TreeListSettings<RowType>
.SettingsPager.SEOFriendly
VerticalGridSettings
.SettingsPager.SEOFriendly
VerticalGridSettings<ColumnType>
.SettingsPager.SEOFriendly
ASP.NET Bootstrap Controls BootstrapCardView
.SettingsPager.SEOFriendly
BootstrapGridView
.SettingsPager.SEOFriendly

Example

This example demonstrates how the ASPxDataView control can be customized to make use of the SEO-friendly paging feature.

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" 
Inherits="_Default" %>
<%@ Register Assembly="DevExpress.Web.v8.3, Version=8.3.2.0, Culture=neutral, 
PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dxdv" %>  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<script runat="server">
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
 <head id="Head1" runat="server">
     <title>SEO-friendly paging</title>
 </head>
 <body>
     <form id="form1" runat="server">

         <dxdv:ASPxDataView ID="ASPxDataView1" runat="server" 
              DataSourceID="dsSampleDataSource" RowPerPage="2" ColumnCount="2">
             <PagerSettings SEOFriendly="Enabled"></PagerSettings>
             <ItemTemplate>
                 <b>CustomerID</b>: <asp:Label Text='<%# Eval("CustomerID") %>' 
                       runat="server" ID="CustomerIDLabel" /><br/>
                 <b>ContactName</b>: <asp:Label Text='<%# Eval("ContactName") %>' 
                       runat="server" ID="ContactNameLabel" /><br/>
                 <b>City</b>: <asp:Label Text='<%# Eval("City") %>' runat="server" 
                       ID="CityLabel" /><br/>
             </ItemTemplate>
         </dxdv:ASPxDataView>

         <asp:AccessDataSource ID="dsSampleDataSource" runat="server" 
             DataFile="~/App_Data/nwind.mdb"
             SelectCommand="SELECT [CustomerID], [ContactName], [City] FROM [Customers]">
         </asp:AccessDataSource>
     </form>
 </body>
 </html>
See Also