Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
27518 Points
4899 Posts
MVP
Apr 09, 2012 10:35 PM|LINK
In the view, you'll need to prefix that with the ViewContext:
<h2>@ViewContext.HttpContext.GetOverriddenBrowser().IsMobileDevice</h2>
BrockAllen
All-Star
27518 Points
4899 Posts
MVP
Re: MVC 4 not using mobile pages
Apr 09, 2012 10:35 PM|LINK
In the view, you'll need to prefix that with the ViewContext:
<h2>@ViewContext.HttpContext.GetOverriddenBrowser().IsMobileDevice</h2>
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/