Sub has to complete to load the page?

VBAHole22

Contributor
Joined
Oct 21, 2003
Messages
432
Location
VA
I have a page that has a sub that runs a long process querying Oracle.
When the page loads I want to display a panel that has a gif of a progressbar so the user knows that they have to wait. Then I want to call the long process. What is happening is that the page is waiting to run the process before it loads. How can I avoid this?

MainPage has a button that redirects to this page
Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.WaitPanel.Visible = True
        LoadStats()
    End Sub

LoadStats is my long running process.

Any suggestions?
 
Have you tried that link in your previous posting? Seems like need to do some response.writes followed by a response.flush which writes a layer to the html, do your long process, followed by writing some more html/js that hides the first layer.
 
Back
Top