0

I need to use distinct version of views, for each device. For example:

Controller/Action: Home/Index

PC - Home.cshtml, Android - Home.Android.cshtml, iPad - Home.iPad.cshtml

These pages contains different markup, but each device. But how it can be activated and detected using ASP.NET MVC IOC?

jgauffin
  • 99,844
  • 45
  • 235
  • 372
Alexandr
  • 1,452
  • 2
  • 20
  • 42

1 Answers1

1

What are you looking for is Mobile capable view engine, look here :

http://www.hanselman.com/blog/NuGetPackageOfTheWeek10NewMobileViewEnginesForASPNETMVC3SpeccompatibleWithASPNETMVC4.aspx

rouen
  • 5,003
  • 2
  • 25
  • 48