filecontentresult
MVC3 Download Excel Workbook from CSV data
I\'ve got a set of data that exists in memory in a CSV format.I have this method in my controller: public FileContentResult ItemsAsExcelExport(){[详细]
2023-04-01 01:01 分类:问答MVC3 URL.Action not rendering my image in img tag
I have an image in my view, as: <img width=\"150\" height=\"150\" scr=\"@Url.Action(\"GetImage\", \"Item\")\" />[详细]
2023-03-31 19:04 分类:问答Opening a byte stream file using asp.net mvc
Im my asp.net mvc application I have aenclosing the thumb image of the file in an aspx page loaded in an iframe. I want to open the file with an Open/Save dialogbox. The file is uploaded to the databa[详细]
2023-03-27 14:15 分类:问答Set Page Title for a PDF inside the Action
I have an action that displays a pdf public ActionResult MyPdf() { var response = pdfService.MyPdf(new PdfRequest() { SiteId = siteSession.ActiveSiteId });[详细]
2023-03-25 11:47 分类:问答how to open filecontentresult without window prompt in any browser
I have filecontentresult from controller action method as shown ,contents is byte[] type FileContentResult file= new FileContentResult(contents, \"/PDF\");[详细]
2023-03-23 09:21 分类:问答ASP.NET MVC FileContentResult SLOW
We are using it to return a file for an export. When we run this export on a lot of records, it takes close to 10 minutes to run. Here is a code snippet of the code that actually calls the File() meth[详细]
2023-01-10 05:52 分类:问答Stream file using ASP.NET MVC FileContentResult in a browser with a name?
Is there a way to stream a file using ASP.NET MVC FileContentResult within the browser with a specific name?[详细]
2023-01-06 16:42 分类:问答ASP.NET MVC: Can an MSI file be returned via a FileContentResult without breaking the install package?
I\'m using this code to return a FileContentResult with an MSI file for the user to download in my ASP.NET MVC controller:[详细]
2022-12-22 03:01 分类:问答