de la propiedad AssetUrlSelector.AssetUrl
Obtiene o establece la dirección URL que el usuario ha escrito o seleccionado y lo escribe en el cuadro de texto Dirección URL de activos .
Espacio de nombres: Microsoft.SharePoint.Publishing.WebControls
Ensamblado: Microsoft.SharePoint.Publishing (en Microsoft.SharePoint.Publishing.dll)
Sintaxis
'Declaración
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 propiedad
Tipo: System.String
Una cadena vacía (valor predeterminado).
Comentarios
Se valida el valor de AssetUrl o la dirección URL se descodifica en devolución de datos si se establecen las propiedades de control adecuado. Esta propiedad no contiene la dirección URL seleccionada en devolución de datos si la propiedad AssetUrlTextBoxVisible se establece en false.
Ejemplos
// 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
Vea también
Referencia
Espacio de nombres Microsoft.SharePoint.Publishing.WebControls