Hi,
I'm using VS 2013 and VB. We have a website that has the ViewSwitcher.ascx template. It automatically switches to a mobile device mode when a user is viewing the website through a mobile device. Problem is, we needed to redesign the screen for mobile
devices because the desktop Default.aspx page has big charts and gauges that cannot fit in a mobile screen. So we removed the charts and gauges for the mobile version. The following is the code in the ViewSwitcher.ascx file:
Protected Sub Page_Load(sender As Object, e As EventArgs)
'Determine the current view
Dim isMobile = WebFormsFriendlyUrlResolver.IsMobileView(New HttpContextWrapper(Context))
CurrentView = If(isMobile, "Mobile", "Desktop")
'Determine alternate view
AlternateView = If(isMobile, "Desktop", "Mobile")
'Create switch URL from the route
  ...
Go to the complete details ...