Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 7-Dec-12 1:13am
PBGuy1.8K
Comments
shabari7 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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...

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

  Print Answers RSS
0 Mika Wendelius 261
1 Abhinav S 155
2 Peter Leow 140
3 Sergey Alexandrovich Kryukov 125
4 Kornfeld Eliyahu Peter 115
0 Sergey Alexandrovich Kryukov 8,593
1 OriginalGriff 6,536
2 Peter Leow 3,727
3 Zoltán Zörgő 3,456
4 Richard MacCutchan 2,417


Advertise | Privacy | Mobile
Web01 | 2.8.150123.1 | Last Updated 8 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100