AssetUrlSelector.AssetUrl propriedade
Obtém ou define o URL que o usuário digitou ou selecionou e insere-o na caixa de texto URL do ativo .
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (em Microsoft.SharePoint.Publishing.dll)
Sintaxe
'Declaração
Public Property AssetUrl As String
Get
Set
'Uso
Dim instance As AssetUrlSelector
Dim value As String
value = instance.AssetUrl
instance.AssetUrl = value
public string AssetUrl { get; set; }
Valor de propriedade
Tipo: System.String
Uma seqüência vazia (o padrão).
Comentários
O valor de AssetUrl é validado ou a URL decodificado em um postback se o conjunto de propriedades de controle apropriado. Esta propriedade não contém a URL selecionada em um postback, se a propriedade AssetUrlTextBoxVisible estiver definida como false.
Exemplos
// 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.
};
' This must be ECMAScript returning a string
' value for asset URL data.
Private Const ScriptGetAssetUrlValue As String = "window.location.href"
' Sets an event handler for when the AssetUrl value changes on a postback.
AddHandler assetSelector.AssetUrlChanged, Sub(sender As Object, ev As System.EventArgs) Dim newAssetUrlValue As String = (CType(sender, AssetUrlSelector)).AssetUrl 'Perform event handling operations based on the newAssetUrlValue.
End Sub