Que tal mi duda es la siguiente
Tengo un windows form donde tengo un ASPNetPanel en el cual mando a llamar una pagina ASP
Pero tarda tiempo en mostrarse ese ASP y en lo que se muestra quisiera mostrar un LOADER
Existe un método asíncrono que me permita esperar a que se muestre el ASP para después hacer el loader invisible?
Tengo esto pero el Loader no se muestra pareciera que el método no espera a que se cargue el ASP
Me.ShowLoader = true
AspNetPanel1.PageSource = “Recepcion\Ingreso_BusquedaASP.aspx”
AspNetPanel1.Update()Me.ShowLoader = False
Add Application.Update(this); after ShowLoader = true otherwise the update doesn’t go back until the request is finished. It works only if WebSocket is enabled.
Another option if to show the loader and set the AspNetPanel1.PageSource in the Appear event of the page or form. This way everything is loaded in the browser before loading the aspnet panel.
Just use
AspNetPanel1.PageSource = “Recepcion\Ingreso_BusquedaASP.aspx”
No need to call Update and no need to use ShowLoader in the same request/response. In web applications the browser is updated only after the server is done.
Please login first to submit.