Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ASP.NET MVC4 for Mobile Web Application

ASP.NET MVC4 for Mobile Web Application

The speech I gave on MS SWIT 2012, Kyiv 23 March.

It describes main features of ASP.NET MVC, HTML5 and jQuery for development of mobile web applications.

Alexander Beletsky

March 23, 2012
Tweet

More Decks by Alexander Beletsky

Other Decks in Programming

Transcript

  1. What's in ASP.NET MVC4? • ASP.NET Web API • Bundling

    and Minification • Razor Enhancements • Real Time Communication • Mobile Web
  2. What's in ASP.NET MVC4? • ASP.NET Web API • Bundling

    and Minification • Razor Enhancements • Real Time Communication • Mobile Web
  3. “ Gartner estimates the combined installed base of smartphones and

    browser- equipped enhanced phones will surpass 1.82 billion units by 2013, eclipsing the total of 1.78 billion PCs by then “
  4. How to make site adaptive? • Rely on HTML5 and

    CSS3 • Use flexible grid systems • Use Media Queries • Use Display Modes
  5. “ A unified, HTML5-based user interface system for all popular

    mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation. Its lightweight code is built with progressive enhancement, and has a flexible, easily themeable design. “
  6. ASP.NET site ASP.NET portal is one of the most popular

    resource for ASP.NET developers. Unfortunately it's not mobile friendly now. We gonna fix that!
  7. Technologies & Frameworks • ASP.NET MVC4 (Beta) • Knockout.js •

    CSS3 Media Queries • jQuery & jQuery Mobile • HTML5 Local Storage • HTML5 Offine Applications Mode
  8. Project Milestones Web API Web application Mobilize it Offline Mode

    We will go from API desing to usuall web application implementation adapting application for mobile device and allow it to work offline 1 2 4 3
  9. Web API & Web Application • ApiController base class •

    HTTP verb implementation • Knockout.js - Model, ViewModel • Simple Markup + CSS3 Media Queries
  10. Mobile Application • PM> install-package jquery.mobile.mvc • Apply markup changes

    (if needed) • Apply data-roles for controls • Bring the content in mobile form
  11. Make it offline • Use HTML5 local storage • Use

    HTML5 Cache.Manifest • Create Online/Offline logic • Restore data from cache in fallback