Share via


DataViewWebPart.XslLink Property

Gets or sets the URL for the XSLT that is used to transform the content for this Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<HtmlDesignerAttribute("", HtmlEditorBuilderType := "file")> _
<WebPartStorageAttribute(Storage.Shared)> _
<ResourcesAttribute("DataViewWebPartXslLinkLiteral", "Miscellaneous",  _
    "DataViewWebPartXslLinkDescription")> _
Public Property XslLink As String
    Get
    Set
'Usage
Dim instance As DataViewWebPart
Dim value As String

value = instance.XslLink

instance.XslLink = value
[HtmlDesignerAttribute("", HtmlEditorBuilderType = "file")]
[WebPartStorageAttribute(Storage.Shared)]
[ResourcesAttribute("DataViewWebPartXslLinkLiteral", "Miscellaneous", 
    "DataViewWebPartXslLinkDescription")]
public string XslLink { get; set; }

Property Value

Type: System.String
String that contains the URL that points to the XSLT that renders content for this Web Part.

Remarks

The XslLink property is read/write. The URL in this property can point to any Web address; however it must be prefixed with the protocols "http://" or "https://" to work properly. For example, "http://www.domain.com" or "https://www.domain.com". There is no maximum length for this property. There is no default value. If the XSLT cannot be retrieved from the specified URL, the contents of the Xsl property will be used instead.

See Also

Reference

DataViewWebPart Class

DataViewWebPart Members

Microsoft.SharePoint.WebPartPages Namespace