Nov 17, 2018, 5:13 PM
[CLOSED] Autoload and Loader differences (Migrating from coolite to Ext.Net)
Hello:
In coolite we have the next code:
ShowMask and MaskMsg not member of ComponentLoader.
With the code Panel.Loader.Url and Panel.Loader.Mode have good syntax and compile but when you run the code generate this error:
System.NullReferenceException
HResult=0x80004003
Mensaje = Referencia a objeto no establecida como instancia de un objeto.
Origen = App_Web_h2wskyho
Seguimiento de la pila:
en sisnet.cargaPagina(String pagina, APLICACION aplicacion) en C:\SIS\Sis\sisnet\sisnet.aspx.vb: lÃ*nea 72
en sisnet.Page_Load(Object sender, EventArgs e) en C:\SIS\Sis\sisnet\sisnet.aspx.vb: lÃ*nea 30
en System.EventHandler.Invoke(Object sender, EventArgs e)
Comment: The variable pagina have a valid value.
I found using Panel.LoadContent(pagina) and eliminating the command
Panel.Loader.Url = pagina
Panel.Loader.Mode = LoadMode.Frame
the page load work but is not a good solution for me because I lost the other functionality.
What is your recommendation to do?
Thanks
In coolite we have the next code:
Panel.AutoLoad.Url = pagina
Panel.AutoLoad.ShowMask = True
Panel.AutoLoad.MaskMsg = "Cargando..."
Panel.AutoLoad.Mode = Coolite.Ext.Web.LoadMode.IFrame
Panel.Load()
I change for the next code in Ext.Net Panel.Loader.Url = pagina
Panel.Loader.ShowMask = True
Panel.Loader.MaskMsg = "Cargando..."
Panel.Loader.Mode = LoadMode.Frame
Panel.LoadContent()
This solution have some problems:ShowMask and MaskMsg not member of ComponentLoader.
With the code Panel.Loader.Url and Panel.Loader.Mode have good syntax and compile but when you run the code generate this error:
System.NullReferenceException
HResult=0x80004003
Mensaje = Referencia a objeto no establecida como instancia de un objeto.
Origen = App_Web_h2wskyho
Seguimiento de la pila:
en sisnet.cargaPagina(String pagina, APLICACION aplicacion) en C:\SIS\Sis\sisnet\sisnet.aspx.vb: lÃ*nea 72
en sisnet.Page_Load(Object sender, EventArgs e) en C:\SIS\Sis\sisnet\sisnet.aspx.vb: lÃ*nea 30
en System.EventHandler.Invoke(Object sender, EventArgs e)
Comment: The variable pagina have a valid value.
I found using Panel.LoadContent(pagina) and eliminating the command
Panel.Loader.Url = pagina
Panel.Loader.Mode = LoadMode.Frame
the page load work but is not a good solution for me because I lost the other functionality.
What is your recommendation to do?
Thanks
Last edited by fabricio.murta; Dec 14, 2018 at 10:00 PM.