views:

307

answers:

2

I have an updateprogress bar, displaying a text "loading". After I hit a imagebutton (I am using it for downloading a file) inside my update panel, with a click event, It calls click function , and click function is like below. The download screen of open, save, close cames. And updateprogress bar displays "loading". But after downloading the file, this "loading" text is not disappearing. What should i do to make it disappear ?

protected void downloadButton_Click(object sender, EventArgs e)
{
    Response.Redirect("/temporary_reports/" + "x_report" + "_" + numberOfTicks + ".xls");
    return;
}
A: 

I would suggest you to implment progressbar using this article, this is very good, I have implement the same thing in our project..

http://www.codedigest.com/Articles/ASPNETAJAX/125_Using_UpdateProgress_Control_Effectively.aspx

Muhammad Akhtar
My button is in a asp.net table- tablecell in updatepanel, I used the javascript code from the link you gave, below "Associating a UpdateProgress Control to a UpdatePanel", with my imagebuttonid and now it shows the updateprogress bar after any event, no mather if it is my imagebutton or not.
stckvrflw
A: 

I learned that you can also give imageurl to hyperlinks, and that solves the problem.

stckvrflw