How do I set it so that when a link is clicked in a view, it prompts the user to download a file.
A:
Make a link to a downloadable file.
If you want us to give more details, you'll need to give us more details.
SLaks
2009-12-21 01:10:09
A:
Try Server.TransmitFile() method. That's what I do it in ASP.NET WebForms and I would imagine it's the same in MVC.
Mike C.
2009-12-21 01:11:06
+5
A:
You can just return a FileResultType. http://msdn.microsoft.com/en-us/library/system.web.mvc.fileresult.aspx
stimms
2009-12-21 01:12:09