Share via


AssetUrlSelector.AssetUrlTextBoxVisible Property

Determines whether the text box for the AssetUrl is rendered.

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

Syntax

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

value = instance.AssetUrlTextBoxVisible

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

Property Value

Type: System.Boolean
If set to false, the text box for the AssetUrl is not rendered. Defaults to true.

Remarks

If set to false, the AssetUrl property does not contain the value selected in the dialog box. You can use the AssetUrlClientID or the ClientCallback properties to capture the value returned from the Asset Picker dialog box in another control or input field on the client side, and any AssetUrl value can be retrieved from that control's posted values.

Examples

        // These values control the appearance of the text box
        // and button for the control
        private const bool SampleAssetUrlTextBoxVisible = true;
       
            // Set values for the appearance of the text box and 
            // button for the control
            assetSelector.AssetUrlTextBoxVisible = SampleAssetUrlTextBoxVisible;

See Also

Reference

AssetUrlSelector Class

AssetUrlSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

AssetUrlSelector