280 likes | 718 Views
TOOL-803T. Enabling Mobile apps with ASP.NET MVC. Phil Haack Senior Program Manager Microsoft Corporation. Three things you will know after this talk. Why supporting mobile devices is important Tips you can use to improve your existing mobile websites
E N D
TOOL-803T Enabling Mobile apps with ASP.NET MVC Phil Haack Senior Program Manager Microsoft Corporation
Three things you will know after this talk • Why supporting mobile devices is important • Tips you can use to improve your existing mobile websites • What ASP.NET MVC 4 is doing to make mobile web development better easier
1 billion active mobile broadband subscriptions Source: International Telecom Union (http://www.itu.int/ITU-D/ict/statistics/at_glance/KeyTelecom.html) Source: basic math
mobile is fast becoming the primary way people browse the web
demo do nothing
demo adaptive rendering
adaptive rendering Pros • optimized for the current device • less duplication of efforts Cons • glosses over the differences between mobile and desktop • inefficient bandwidth usage
if you do absolutely nothing else <metaname="viewport"content="width=device-
if you do absolutely nothing elseat least add a viewport meta tag! <metaname="viewport"content="width=device-width"/>
demo display modes + jquery mobile
Fix it on the server Pros • maximum flexibility • Bandwidth efficient Cons • can be repetitive • device detection is not trivial
the approach you choose depends on the type of app you build
HTML5 is a collection of technologies • canvas • video • geolocation • local storage • offline • web forms • microdata • history
demo html5 mobile web application
If I did my job well, you should now be able to answer the following questions: • Why is supporting mobile devices important? It’s becoming the primary way people access the internet. • What is one tip you can use today to improve your existing mobile websites? Adaptive rendering using viewport and media CSS • What is at least one thing ASP.NET MVC 4 is doing to make mobile web development better easier? Display modes, default project template, view switcher.
For more information Related sessions • TOOL-796T: ASP.NET 4.5 loves HTML5, CSS3 & JavaScript • PLAT-382T: What's new with HTML5, Javascript, and CSS3 • PLAT-376T: Building offline access in Metro style apps and websites using HTML5 Reading materials • Dive into HTML5 (http://diveintohtml5.org/) • http://asp.net/mvc/
thank you Feedback and questions http://forums.dev.windows.com Session feedbackhttp://bldw.in/SessionFeedback
© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.