This documentation is archived and is not being maintained.

SPContentType.DisplayFormUrl Property

Windows SharePoint Services 3

Gets or set the URL of a custom Display form page to use for items assigned this content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public string DisplayFormUrl { get; set; }

Property Value

Type: System.String
Returns a String object.

This property enables you to specify a client-side redirect to a custom Display form page for items assigned this content type.

Form pages are .aspx pages that replace the entire default Windows SharePoint Services page, including the framing elements, or chrome, such as top and side navigation bars. For form pages, you must create any navigational links or other elements you want that are usually found in the Windows SharePoint Services chrome.

The URLs you specify must be relative to the root location of the content type.

If you do not specify a custom form page, Windows SharePoint Services renders the form automatically for you.

For more information, see FormUrls Schema Overview.