Donate

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.
HttpResponseBase response = context.HttpContext.Response;  
response.ContentType = "application/pdf";  

Greg

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

Bootstrap Modal In ASP.NET MVC With CRUD Operations