Condividi tramite


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)

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
true if the control has rendered correctly; otherwise, false.

Remarks

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.

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;
' These values control the appearance of the text box
' and button for the control.
Private Const SampleAssetUrlTextBoxVisible As Boolean = 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