Answered by:
Controller export to .csv failed for IE

Question
-
User-893002196 posted
Hi,
Why IE can't pop up the file csv to save?
//Download the CSV file.Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition", "attachment; filename=" + module.Replace(" ", "_") + ".csv");
Response.Charset = "";
Response.ContentType = "text/csv";
StringBuilder sb = new StringBuilder();
:
:Response.Output.Write(sb.ToString());
Response.Flush();
Response.End();
Please advise.
Thanks
Regards,
Micheale
Friday, June 12, 2020 8:16 AM
Answers
-
User-893002196 posted
Hi,
I have resolved my issue. The way I am calling the controller using Jqgrid that caused file doesn't pop up Save Dialog. The controller code is work.
Many thanks.
Regards,
Micheale
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, June 16, 2020 12:49 PM
All replies
-
User-474980206 posted
What do you mean by failed? What was the error?
Saturday, June 13, 2020 3:21 PM -
User-893002196 posted
Hi Sir,
There is no Save As dialog from IE. When I use VS debugger, I can see the code being execute without any error.
Please advise.
Regards,
Micheale
Monday, June 15, 2020 12:31 AM -
User-474980206 posted
Doesn’t the file show up in the downloads folder? with the edge convert to chromium there is no save as dialog anymore.
Monday, June 15, 2020 2:54 PM -
User-893002196 posted
Hi,
I have resolved my issue. The way I am calling the controller using Jqgrid that caused file doesn't pop up Save Dialog. The controller code is work.
Many thanks.
Regards,
Micheale
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, June 16, 2020 12:49 PM