Tuesday, December 4, 2012

Content Types/MIME Types List in ASP.NET(MVC)

I have searched for content types which is suitable for asp.net or asp.net mvc applications using the HttpResponse class ContentType property.

Here's the website with the MIME list: Mime Type List

Here's a sample asp.net/mvc snippet.
Code:
HttpResponseBase response = context.HttpContext.Response;  
response.ContentType = "application/pdf";  

Greg

0 comments:

Post a Comment