Nuestro buen amigo Juan Manuel Herrera nos comparte su artículo:
De SharePoint 2007 a 2010 creando una ventana de dialogo Parte II
En la primera parte http://jmhogua.blogspot.com/2012/08/de-sharepoint-2007-2010-creando-una.html vimos la creación de la Application Page que se utilizará como contenedor de la ventana de dialogo.
El evento Load() del elemento Web en los comentarios “// your code here…” escribiremos el código de JavaScript para invocar la ventana de dialogo.
/// <summary> /// Ensures that the CreateChildControls() is called before events. /// Use CreateChildControls() to create your controls. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { if (!_error) { try { base.OnLoad(e); this.EnsureChildControls(); // Your code here... } catch (Exception ex) { HandleException(ex); } } }
/// <summary> /// Ensures that the CreateChildControls() is called before events. /// Use CreateChildControls() to create your controls. /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { if (!_error) { try { base.OnLoad(e); this.EnsureChildControls();
// Your code here... } catch (Exception ex) { HandleException(ex); } } }
Ver más aquí. Saludos.
Fernando García Loera (Community Program Manager – Latin America Region)
Que es un MVP? / Tips para ser MVP