How can I set a default content-type of text/html in my web.config?
Posted
by Adrian Grigore
on Stack Overflow
See other posts from Stack Overflow
or by Adrian Grigore
Published on 2010-05-04T18:14:34Z
Indexed on
2010/05/04
18:18 UTC
Read the original article
Hit count: 546
I'd like to set the default content-type for web pages in my ASP.NET MVC application to text/html.
I know this can be done by adding a ContentType="text/html" to all of my <%Page%> elements, but I'd prefer to use the web.config instead. How can I do that?
Thanks,
Adrian
© Stack Overflow or respective owner