Step 1: Create your Ajax Call I have provided sample code here. Business innovation often comes from within. Discover how to empower innovation from non-traditional developers with the Microsoft Power Platform. For Chrome and Firefox you can simply use the anchor with the download attribute and then click it. As Internet Explorer does not currently support the Download attribute you will have to jump through a hoop. We made the height and width 0 so it will hide behind save as.
Hopefully IE will support this tag in future and we will not need this if. You get your CSV however you generate it then serialize it then return it. I always forget [PublicRoute]. Now you have it. On Chrome and Firefox it will download properly. On Internet Explorer it will briefly show the window that will be covered with save as. When saving it will save the proper file but the user will see a save as pop up. See this answer. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 5 years ago. Active 5 years ago. Viewed 2k times. Improve this question. Amitoz Deol. Amitoz Deol Amitoz Deol 55 1 1 silver badge 8 8 bronze badges. Either use a form, or open a pop-up, or use data URIs — nicovank.
I'm sorry, pretty new to all this. Is your request the file to be downloaded? Add a comment. Active Oldest Votes.
Improve this answer. Community Bot 1 1 1 silver badge. Yes I already have all these headers. Stackoverflow didn't let me add all the code. I recommend to check whether your server-side-CSV.
Call it directly from browser.
0コメント