AssetUrlSelector.DecodeUrlPath Property
Determines if the path of the URL value, up to any number sign (#) or question mark (?) 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 number sign (#) or question mark (?) character, is URL-decoded before the AssetUrl property returns it. Otherwise, the path is not URL-decoded.
The default is 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 controlassetSelector.DecodeUrlPath = SampleDecodeUrlPath;
' These values control the appearance of the text box
' and button for the control
Private Const SampleDecodeUrlPath As Boolean = True
' Set values for the appearance of the text box and
' button for the control
assetSelector.DecodeUrlPath = SampleDecodeUrlPath