1

I am developing a MVC application that is accessed by mobile browsers.

Unfortunately, .Net has a tendency to change the content-type from text/html to text/vnd.wap.wml for several older mobile phones.

I know I can create an ActionFilter that overrides this behaviour and forces content-tpe text/html, or I can include the Content-Type in the <%@ Page ... %> directive.

But is there an easier way to stop .Net from changing content-type?

aanund
  • 1,483
  • 11
  • 18

1 Answers1

0

Could use this approach Return XML from a controller's action in as an ActionResult?

or this ASP.NET MVC and text/xml content type

Community
  • 1
  • 1
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252