Sep 25, 2020 02:45 PM|johnboyman12|LINK
Hello. I have made a website with mvc5 and am now trying to make a cell phone version. I followed these instructions.
I do have a developer version of firefox and the mobile view switcher is on mobile. When i try to run the
_Layout.Mobile.cshtml in my browser it just runs _Layout.cshtml so the view switcher is not taking effect.
I installed the nuget package on the nuget package manager Install-Package jQuery.Mobile.MVC
It installed these things on my site
BundleMobileConfig.RegisterBundles(BundleTable.Bundles); to application_start in
The only way that i could get the _Layout.Mobile.cshtml page to run is by changing the filepath in viewstart.cshtml to the mobile version of the _Layout.cshtml
Layout = "~/Views/Shared/_Layout.cshtml";
Please help thanks.