Need to get web front end displayed before processing is performed.

Posted on 2009-02-14
Last Modified: 2013-12-17
I have an web app. The page renders through the Page_load event, and then c# classes are called and processing is performed.

High intensive processing is performed immediately in backend which sometimes can take up too 5 mins. possibly even longer. The front end to the web page does not appear until this processing is complete. Ideally I need the front end displayed then the processing performed. Can anybody assist with which method i can use to do this. can i use a thread or timer or something. Any assistance would be greatly appreciated.

Below is code example: Is there a place that I can put the Filewatcher call outside the page_load event  and still get it executed.

Something along the lines of a postrender event or something like that.

Thanks you.
protected void Page_Load(object sender, EventArgs e)


        FileWatcher myFileWatcher = new FileWatcher();



Open in new window

Question by:metta0_3
    LVL 12

    Expert Comment

    What will be the intention of the long process?  Do you want to show any output in the Web UI after the process is complete?

    Author Comment

    I do want to show the results in the UI after. This has all been completed. i just need to render the UI first then execute method calls after. Thats all. nothing else.
    LVL 16

    Accepted Solution

    Try Asynchronous Pages( or

    imports System.Threading
    Thread obj = new Thread(new ThreadStart(<function name with return type of VOID>));
    obj.IsBackground = true;
    LVL 12

    Expert Comment

    You can use AJAX and as soon as you load the page and use web service

    Author Closing Comment

    Perfect solution. Was able to use this answer. much appreciated with quick response. Thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video discusses moving either the default database or any database to a new volume.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now