我的网站响应Twitter Bootstrap,桌面页面专为平板电脑和桌面设计. aspnet.friendlyUrls将平板电脑设备视为移动设备并将其发送到“.Mobile.aspx”等效设备.如何禁用此行为并将平板电脑保留在桌面页面上?
2周后仍然没有awnser甚至评论?我是唯一真正使用aspnet.FriendlyUrls的人,即使它默认分发在新的VS2013 Asp.Net项目中吗?
解决方法
没有设置可以关闭此功能,但您可以通过删除Site.Mobile.Master和ViewSwitcher文件来禁用此功能
不再需要以下文件:
Site.Mobile.Master
– Site.Mobile.Master.cs
– Site.Mobile.Master.designer.cs
ViewSwitcher
– ViewSwitcher.cs
– ViewSwitcher.ascx.cs
感谢@fortboise简化了我的回答