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.Respo nse.Transm itFile(myf ile.FullNa me);")
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.
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.Respo
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was able to get it working. But i dont think that is a perfect solution.
http://geekswithblogs.net/willemf/archive/2005/10/30/58563.aspx
http://www.codeproject.com/KB/aspnet/AutoRefreshWebPage.aspx