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?