AssetUrlSelector.AutoPostBack Property

Determines whether the page automatically posts information back to the server whenever the Asset Picker dialog box returns a value or when the user presses the ENTER or TAB key in the Asset URL text box.

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

Syntax

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

value = instance.AutoPostBack

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

Property Value

Type: System.Boolean
true if the page automatically posts back to the server whenever the Asset Picker dialog box returns a value or the user presses the ENTER or TAB key while the Asset URL text box has the focus.

Remarks

When the Asset Picker dialog box is closed, the AutoPostBack happens only if the value that the Asset Picker dialog box returns differs from the value that was already in the input field. The postback occurs after the AssetUrlClientID, AssetTextClientID, and ClientCallback handling functions are complete.

Examples

// These values control the appearance of the text box
// and button for the control.
private const bool SampleAutoPostBack = true;

// Set values for the behavior and validation
// for the text box.
assetSelector.AutoPostBack = SampleAutoPostBack;
' These values control the appearance of the text box
' and button for the control.
Private Const SampleAutoPostBack As Boolean = True

' Set values for the behavior and validation
' for the text box.
assetSelector.AutoPostBack = SampleAutoPostBack

See Also

Reference

AssetUrlSelector Class

AssetUrlSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

AssetUrlChanged

AssetUrlSelector