Content Types Or 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.
Greg
Here's the website with the MIME list: Mime Type List
Here's a sample asp.net/mvc snippet.
HttpResponseBase response = context.HttpContext.Response;
response.ContentType = "application/pdf";
Greg
Comments
Post a Comment