BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Make Your ASP.NET Web Apps Work On Mobile

| by Roopesh Shenoy Follow 0 Followers on Jun 22, 2012. Estimated reading time: 1 minute |

The View-switcher feature in ASP.NET MVC 4 makes it easier to make existing desktop-focussed web apps play nice on mobile devices. Scott Hanselman demoes how to use this feature and shares other tips.

Some client-side fixes that can usually be applied to make a website look good on mobile devices -

Useful as they are, these techniques do not optimize for bandwidth or consider the usability differences between desktop and mobile devices. ASP.NET, with it's built-in browser detection support and the new View-switcher feature, now allows to switch view modes and send separate mobile-optimized views instead of desktop views. Since even partial views can be switched, combined with the above client-side techniques, you can replace the bandwidth-heavy or least user-friendly components of your web app and still maximize reuse.

You can also use open source projects such as 51Degrees.mobi for enhanced device detection and to access detailed information such as input types, audio format support and more. For more details on various considerations, go through the several resources listed on the ASP.NET Mobile website.

The presentation was a part of DevCon12, Russia. Apart from mobile, Scott also gave talks on the real-time library SignalR and the concept of One ASP.NET. All the video links are available on his blog.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT