Last post May 22, 2013 05:37 PM by kraznodar
May 22, 2013 02:31 PM|kraznodar|LINK
Is there a step by step example that shows how to replace System.Web.UI.MobileControls with whatever is the new way? I see System.Web.UI.Mobile so is that a different dll that replaces System.Web.UI.MobileControls?
I downloaded the MobileEnabledWebFormsApp example and the differences between the controls in the desktop and mobile versions seems to be primarily the style sheets and the following meta tag.
<meta name="viewport" content="width=device-width">
May 22, 2013 03:05 PM|roopeshreddy|LINK
General ASP.NET website works absolutely fine with all Mobile browsers! The Viewport meta tag helps to make the website Mobile compatible!
Yeah, MobileWebControls are depreciated!
More info on Mobile web development - http://roopeshreddy.wordpress.com/2012/12/29/mobile-web-applications-with-asp-net-webforms/
Hope it helps u...
May 22, 2013 05:37 PM|kraznodar|LINK
Just to recap for anyone else as slow on the uptake as I was;
Get rid of the reference to System.Web.UI.MobileControls. Add <meta name="viewport" content="width=device-width"> to your <head> section.
All of the <asp:mobile...> tags need to be replaced with normal controls. The ID attribute of each tag can stay the same so even the codebehind doesn't need changing.