This is a migrated thread and some comments may be shown as answers.

Progress Monitor on page loading

1 Answer 78 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
aehlert
Top achievements
Rank 1
Veteran
aehlert asked on 27 Oct 2009, 02:30 PM
I haven't been able to get this to work.

I have a webpage, that when loading, I would like to display the progress monitor for.

The guts of the page load are:

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            RadProgressArea.Localization.UploadedFiles = "Directories Processed: ";
            RadProgressArea.Localization.CurrentFileName = "Current Directory: ";
            RadProgressArea.Localization.TotalFiles = "Directories Found: ";
            RadProgressArea.Localization.TransferSpeed = "Files Processes: ";

            if (Request["websiteMasterID"] == string.Empty)
                Response.Redirect("~/SessionTimeOut.aspx", true);
            else
            {
                try
                {
                    _websiteMasterID = int.Parse(Request["websiteMasterID"]);
                    CrawlWebsite(_websiteMasterID);
                }
                catch (Exception _ex)
                {
                    Response.Redirect("~/SessionTimeOut.aspx", true);
                }
            }
        }
    }
    private void CrawlWebsite(int _websiteMasterID)
    {
            //stuff
    }


Basically, when the page is called it grabs the webisite ID from the query string and then processes the files for that website.  While this is going on, I would like the progress information to be displayed.

I have this working if I click on a link on the page, and it does the post back.  Then I can see the progress information, so the progress bar is working.

However, when i try to do it on the page_load, then the previous screen stayes in the browser;  You see that the page is doing something because of the disc activity; then it loads the rest of the page information.  It doesn't show the progress.

Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Vesko
Top achievements
Rank 2
answered on 30 Oct 2009, 08:55 AM
The progress area cannot be shown on initial page load. It can be displayed after a postback only.
Tags
Upload (Obsolete)
Asked by
aehlert
Top achievements
Rank 1
Veteran
Answers by
Vesko
Top achievements
Rank 2
Share this question
or