How can I make downloadable file links in asp.net mvc for downloading the files?
Also how can I show the file as thumbnail in my page in asp.net mvc?
You can use a FileResult. See http://msdn.microsoft.com/en-us/library/system.web.mvc.fileresult.aspx
Related
I created a xml site map file manually for my asp.net mvc 4 application.
Now how can i use this file for SEO improvement? what should i do with this file?
thank you
I define a ashx file in MVC4 project in content folder so it doesn't work ?!!
So i have several questions?
1- Can we define ashx file in MVC or it isn't possible?
2-If we can define how can we do that?
Best regards
You can definitely use an .ashx file in MVC. An MVC app is an ASP.NET Web app. You should add the .ashx in the root folder (not the content folder), or in a normal subfolder, as you would in an ordinary ASP.NET web project.
I'm writing an asp.net mvc application. I'm looking for free control to make file(s) upload. (Multiple files upload is not required). I found uploadify, ajax uploader, c5 filemanager.
I'm looking rather example which I could include in Razor form and add additional fields such as i.e. file description.
Do you have any specific control which you could suggest?
Uploadify in my opinion is the best.
Check out:
How do I get jQuery's Uploadify plugin to work with ASP.NET MVC?
its the same in mvc3.
What's the purpose of the Content/Themes/base directory in an ASP.NET MVC application? I see that it has some images (which as far as I can tell, are not used); and a bunch of jQuery CSS files.
What are these files for? Are they used by default in a new ASP.NET MVC application?
jQuery UI is included with new ASP.NET MVC projects; these files are used by all the different widgets. If you're not going to use jQuery UI, or if you want a custom download package (available from their website), you can delete all of these files (and the references to them in the layout/master page file).
file upload using ajax by retaining all the other information in the page.
I've used the ajaxForm plug-in for this, works pretty good (and is a pure JavaScript/jQuery solution).
asp.net mvc file upload ajax post
How can I upload a file via ASP.NET MVC and show a progress bar?
http://www.uploadify.com/
hope this helps