Mobile ASP.NET MVC 5 by Eric Sowell

Mobile ASP.NET MVC 5 by Eric Sowell

Author:Eric Sowell [Sowell, Eric]
Language: eng
Format: epub, pdf
Tags: Computers, Web, Web Programming, Design
ISBN: 9781430250562
Google: EdAxlwEACAAJ
Amazon: 1430250569
Publisher: Apress
Published: 2013-11-20T05:00:00+00:00


string altViewPath = String.Empty;

string altMasterPath = String.Empty;

if (controllerContext.HttpContext.GetOverriddenUserAgent().IndexOf("MSIE 10.0;

Windows Phone 8.0", StringComparison.OrdinalIgnoreCase) >= 0)

{

CheckView(viewPath, ref altViewPath, "wp8", controllerContext);

CheckView(masterPath, ref altMasterPath, "wp8", controllerContext);

}

if (controllerContext.HttpContext.GetOverriddenBrowser().IsMobileDevice)

{

if (String.IsNullOrWhiteSpace(altViewPath))

CheckView(viewPath, ref altViewPath, "mobile", controllerContext);

if (String.IsNullOrWhiteSpace(altMasterPath))

CheckView(masterPath, ref altMasterPath, "mobile", controllerContext);

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.