views:

33

answers:

2

I have an UpdateProgress control to activate on a postback of a button control. The button_click event is performing a Response.Redirect to show CSV Report. The report comes up and the UpdateProgress bar is spinning on the page with the button. However, once the user closes the report and control is returned to the page, the UpdateProgress image is still there spinning.

How can I use the UpdateProgress bar to finish and go away?

A: 

The browser knows when it sees a response with content-disposition: attachment to leave the original window open. instead of doing a postback + response.redirect, the best option is to use a GET request, i.e. a hyperlink to a download URL. Server.Transfer may also work instead of the Response.Redirect.

matt-dot-net
A: 

I removed the UpdateProgress and handled the progress following way http://msdn.microsoft.com/en-us/library/bb311028.aspx

Dee