Mobile ASP.NET MVC 5

Book description

Mobile ASP.NET MVC 5 will take you step-by-step through the process of developing fluid content that adapts its layout to the client device using HTML, JavaScript and CSS, and responsive web design. This book introduces server-side techniques that allow you to show different content to different devices and make the most of their strengths and capabilities. Mobile ASP.NET MVC 5 includes a wide range of techniques, tips, and guidelines for dealing with some of the challenges of mobile web development, such as browser incompatibilities, varying device performance, and targeting older devices.

You'll learn to:

  • Use responsive principles to build apps that display and perform well on a range of mobile devices.

  • Leverage your server-side code to customize what you serve to the client, depending on its capabilities.

  • Build an ASP.NET MVC custom view engine, use display modes effectively, and create reusable mobile components with custom HTML helpers.

  • Make the most of new capabilities offered on some devices by interacting with native APIs.

  • By the end of Mobile ASP.NET MVC 5, you should feel confident building web apps that successfully target anything from an iOS or Android device to a feature phone or an older mobile browser. Along the way, you'll learn about the modern mobile web landscape and how to choose the approaches that are right for you, depending on your target audience.

    This book is for the ASP.NET developer who knows how ASP.NET MVC works and is eager to learn how to use it for building mobile websites.

    What you'll learn

  • Use responsive principles to build apps that display and perform well on a range of mobile devices.

  • Leverage your server-side code to customize what you serve to the client, depending on its capabilities.

  • Build an ASP.NET MVC custom view engine, use display modes effectively, and create reusable mobile components with custom HTML helpers.

  • Make the most of new capabilities offered on some devices by interacting with native APIs.

  • Learn tips and tricks for dealing with browser incompatibilities and targeting older devices.

  • Benefit from the author's experience as he guides you through a full range of modern mobile web strategy.

  • Who this book is for

    This book is for the ASP.NET developer who knows how ASP.NET MVC works and is eager to learn how to use it for building mobile websites. Thorough knowledge of ASP.NET MVC is not at all required but some is assumed. This book also assumes a little knowledge of HTML, CSS and JavaScript. You do not need any prior experience in mobile development.

    Table of contents

    1. Title Page
    2. Dedication
    3. Contents at a Glance
    4. Contents
    5. About the Author
    6. About the Technical Reviewer
    7. Acknowledgments
    8. Introduction
    9. CHAPTER 1: The Basics of Responsive Web Design
      1. Is This for Developers?
      2. Getting Started
      3. Losing that Fixed Fixation
      4. Summary
    10. CHAPTER 2: CSS Layout Bootcamp
      1. First Steps
      2. The Basic Rules
      3. Laying Out a Page in CSS
      4. Summary
    11. CHAPTER 3: Flexible Layouts
      1. Setting up a New Responsive ASP.NET MVC Site
      2. Revisiting the Three-Column Layout
      3. What about Older Browsers?
      4. A Two-Column Layout
      5. A Ten-Column Layout with Header and Footer
      6. Summary
    12. CHAPTER 4: Flexible Navigation
      1. Making the Horizontal Menu Vertical
      2. Moving the Menu to the Bottom
      3. Turning the Menu into a Select
      4. Creating Accordion-Style Navigation at the Top
      5. Creating Off-Canvas Flyout Navigation
      6. Summary
    13. CHAPTER 5: Flexible Content
      1. Flexible Text
      2. Flexible Tables
      3. Flexible Video
      4. Flexible Images
      5. Summary
    14. CHAPTER 6: Display Modes, View Engines, and Html Helpers
      1. Mobile Views
      2. DisplayModes
      3. Custom View Engine
      4. HtmlHelpers
      5. Summary
    15. CHAPTER 7: Device and Feature Detection
      1. Device Detection
      2. Parsing User Agent Strings with WURFL
      3. Feature Detection
      4. Device Detection versus Feature Detection
      5. Summary
    16. CHAPTER 8: Mobile Performance
      1. Tools
      2. Performance Techniques
      3. Summary
    17. CHAPTER 9: Native APIs, HTML5, and CSS3 on Mobile Today
      1. Native Phone APIs
      2. New Capabilities
      3. Visual Tools
      4. Summary
    18. CHAPTER 10: Programming for Touch
      1. The Browser Touch APIs
      2. Touch Location
      3. Touch Screens, Touch Events, and Default Behavior
      4. Building a Simple Touch Sample
      5. Summary
    19. CHAPTER 11: Advanced Touch Programming
      1. Creating Custom Events
      2. Creating a Gesture
      3. Scaling, Rotating and Moving Things
      4. Summary
    20. CHAPTER 12: Useful Libraries for Mobile
      1. Responsive Libraries
      2. Touch Libraries
      3. Device/Feature-Detection Libraries
      4. Mobile Application Frameworks
      5. Summary
    21. Index

    Product information

    • Title: Mobile ASP.NET MVC 5
    • Author(s):
    • Release date: November 2013
    • Publisher(s): Apress
    • ISBN: 9781430250562