AssetUrlSelector.AssetUrlTextBoxVisible property

Determines whether the text box for the AssetUrl property is rendered.

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

public bool AssetUrlTextBoxVisible { get; set; }

Property value

Type: System.Boolean
true if the control has rendered correctly; otherwise, false.

If set to false, the AssetUrl property does not contain the value selected in the dialog box. You can use the AssetUrlClientID property or the ClientCallback property 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.

// 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;