Share via


AssetUrlSelector.AssetTextClientID Property

Gets or sets the client ID used to find the HTML element for the URL value returned from the Asset Picker dialog box.

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

Syntax

'Declaration
Public Property AssetTextClientID As String
    Get
    Set
'Usage
Dim instance As AssetUrlSelector
Dim value As String

value = instance.AssetTextClientID

instance.AssetTextClientID = value
public string AssetTextClientID { get; set; }

Property Value

Type: System.String
Defaults to an empty string.

Remarks

By default, this property is empty and the default text that the Asset Picker dialog box returns is not captured. If this property is set and a value is returned in the dialog box, the application uses the AssetTextClientID property to retrieve an HTML element with the specified ID from the HTML document.

If an HTML element with the specified ID is found, its "value" property is set to the default text returned from the Asset Picker dialog box.

If the HTML element found is an input field and it is visible, the returned default text value from the Asset Picker dialog box appears in the control, and the text value can be retrieved from the control's posted values. You can use the ClientCallback property to perform more JavaScript operations after the default text value is captured in the HTML element.

Examples

            // The application uses the text box client ID to connect
            // the Asset Picker to the text boxes for the resulting URL
            // and default text values returned from the Asset Picker 
            // dialog box.
            assetSelector.AssetUrlClientID = assetUrlControl.ClientID;
            assetSelector.AssetTextClientID = assetTextControl.ClientID;

See Also

Reference

AssetUrlSelector Class

AssetUrlSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

AssetUrlClientID

ClientCallback

AssetUrlSelector