public FileContentResult DownloadCSV()
{
string csv = "Charlie, Chaplin, Chuckles";
return File(new System.Text.UTF8Encoding().GetBytes(csv), "text/csv", "Report123.csv");
}
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2017
(142)
-
▼
December
(16)
- Model Item type ambiguity when using PagedList
- MVC Field Level Security
- Entity Framework Code First Migrations
- Getting the HTTP Referrer in ASP.NET
- How do I redirect to the previous action in ASP.NE...
- Html.ActionLink as a button or an image, not a link
- ASP.NET MVC razor: conditional attribute in HTML
- how to open view in new tab from <%: Html.ActionLi...
- PDF Watermark
- Export to CSV using MVC, C# and jQuery
- Converting a generic list to a CSV string
- Unable to update database to match the current mod...
- Changing EF’s default connection factory from Loca...
- how to provide button style to an html actionlink
- Entity Framework Code First Migrations
- How to specify database name in Code First?
-
▼
December
(16)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.