Link to home
Start Free TrialLog in
Avatar of jagkon
jagkon

asked on

How to Auto-Refresh a webpart (Developed in C#) after a download.

Hi Guys,
I am developing a custom Webpart for Sharepoint using C#.
On clicking a button, it downloads a file.
(To download this i am using "HttpContext.Current.Response.TransmitFile(myfile.FullName);")
Download works fine. But after download, controls or buttons in Webpart will NOT work.
I have to do a refresh manually to make it work again.
Is there any way to auto-Refresh. I think i may have to use javascript or AJAX here.
Any of you guys have working examples ?

Thanks a lot in advance.
ASKER CERTIFIED SOLUTION
Avatar of jagkon
jagkon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jagkon
jagkon

ASKER

I was able to get it working. But i dont think that is a perfect solution.