Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hii, I am using Response object to show save file dialog for excel export,the whole routine was in PageMethod [webmethod with static], every thing works fine, even the Succeeded callback function pops a confirmation dialog, but Save file dialog is not shown.Didn't find any exception in the code.Won't Response work with static methods..?
Why the save file dialog is not shown to save/open the .xlsx file?



any suggestion is appreciated.
Posted
Comments
[no name] 7-Dec-12 6:15am    
While the export process is going, I have shown a modal dialog with please wait message , in onsuccess method I hide the modal dialog, but no save file dialog is shown.

1 solution

You need to use HttpContext class.

Please check the correct answer to question Using the Response object in a static webmethod?[^]. It might help you.

Thanks...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900