Esperar la carga de un ASPNetPanel

0
0

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

 

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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.

  • Obeth Morales Martinez
    I think that I dont not explain me. I want that while the ASP is loaded, show a loader because the time of load of the ASP is alot. because the ASP have a lot of data so while the user wait and the ASP is shown in the Window Form a Loader be displayed (Excuse my English)
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.