We are using updatePanel in our .aspx page. When using below method in code behind, getting the error Could not complete the operation due to error c00ce514
wbReport.Save(response, "Report.xls", ContentDisposition.Attachment, New XlsSaveOptions())
Do you use MS Ajax Extension’s UpdatePanel, I have tested to put your mentioned code adding a button to the panel in VS.NET 2010, it gives no error and the project/page compiled fine.
By the way, you should not put this code or Response.Write() type of code to Update Panel as using update panel will produce a partial-update of your page on a postback. Only the
content in the UpdatePanel is refreshed, the other parts of the page
remain unchanged. But as Workbook.Save() method with response the final Excel file to the client, so it would not give you better results or no use I think. You should always put these type of codes outside of the update panel and this should be your last line of code in program segment, there should be no processing after this.
Thank you.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.