AssetUrlSelector.AssetUrl property

Gets or sets the URL that the user has typed or selected and enters it in the Asset URL text box.

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

public string AssetUrl { get; set; }

Property value

Type: System.String
An empty string (the default).

The AssetUrl value is validated or the URL decoded on postback if appropriate control properties are set. This property does not contain the selected URL on postback if the AssetUrlTextBoxVisible property is set to false.

       // This must be ECMAScript returning a string   // value for asset URL data.
private const string ScriptGetAssetUrlValue = "window.location.href";

// Sets an event handler for when the AssetUrl value changes on a postback.assetSelector.AssetUrlChanged += 
delegate(object sender, System.EventArgs ev)
{ string newAssetUrlValue = ((AssetUrlSelector)sender).AssetUrl;
// Perform event handling operations based on the newAssetUrlValue.