Skip to content

Page Load takes too long to load

doc opulencia

Asked Dec 7, 2007, 9:06 PM EST1 answer
Share
LinkedInX
Hi i am currently developing a page that generates a pdf file. my problem is when i call the page that generates the file it should have a default text and image that says "generating file... please wait..."
but the problem is the controls and even the texts are not displaying until the function that generates the pdf is done... how can i make my page display all the texts and images before executing the function? and i also need the function that generates the pdf file triggered upon entering the said page.

help please....

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Currently i am using this simple thread code

      System.Threading.ThreadStart entry =
                             new System.Threading.ThreadStart(GenFile);
                    System.Threading.Thread thrd =
                                            new System.Threading.Thread(entry);
                    thrd = new System.Threading.Thread(entry);
                    thrd.Start();

    Now my page is displaying the texts and the images...
    My only problem now is that i need to close this page after all the file is created or after the loop ends.
    i am using self.close to close the page... by the way my page is a popup window
    0