Share via


AssetUrlSelector.DecodeUrlPath Property

Determines if the path of the URL value, up to any # or ? character, is URL-decoded before the AssetUrl property returns it.

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

Syntax

'Declaration
Public Property DecodeUrlPath As Boolean
    Get
    Set
'Usage
Dim instance As AssetUrlSelector
Dim value As Boolean

value = instance.DecodeUrlPath

instance.DecodeUrlPath = value
public bool DecodeUrlPath { get; set; }

Property Value

Type: System.Boolean
If set to true, the path of the URL value, up to any # or ? character, is URL-decoded before the P:Microsoft.SharePoint.Publishing.WebControls.AssetUrlSelector.AssetUrl property returns it. Otherwise, the path is not URL-decoded.
Defaults to true.

Remarks

This property has no effect if the AssetUrlTextBoxVisible property is set to false.

Examples

        // These values control the appearance of the text box
        // and button for the control
        private const bool SampleDecodeUrlPath = true;

            // Set values for the appearance of the text box and 
            // button for the control
            assetSelector.DecodeUrlPath = SampleDecodeUrlPath;

See Also

Reference

AssetUrlSelector Class

AssetUrlSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

AssetUrlSelector