InfoQ Homepage News Make Your ASP.NET Web Apps Work On Mobile

Make Your ASP.NET Web Apps Work On Mobile

This item in japanese


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 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.

We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article


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.

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

Community comments

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

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


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.