Solved

asp.net mvc web api - mobile views

Posted on 2013-11-11
8
502 Views
Last Modified: 2013-11-25
Is it possible to use asp.net wep api and return two different views based on the device (mobile/desktop)?

Looking for some built in feature.
0
Comment
Question by:sudheer_k
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
8 Comments
 
LVL 21

Expert Comment

by:Craig Wagner
ID: 39640348
ASP.NET Web API doesn't return views, it returns data (XML, JSON, etc).

Did you mean ASP.NET MVC?
0
 

Author Comment

by:sudheer_k
ID: 39640841
Oh ya. That should work fine.
0
 
LVL 26

Accepted Solution

by:
EddieShipman earned 500 total points
ID: 39663040
There was a great article in MSDN magazine about using ASP.Net4 to create mobile-optimized views using WURFL.

Part 1: http://msdn.microsoft.com/en-us/magazine/dn296507.aspx
Part 2: http://msdn.microsoft.com/en-us/magazine/dn342866.aspx

He had an earlier article on
"a server-side approach to take with ASP.NET MVC site development: to build ad hoc views for each class of supported devices (“Mobile Site Development: Markup http://msdn.microsoft.com/magazine/jj133814)"
0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

Author Comment

by:sudheer_k
ID: 39675107
Thanks. This looks fair to me.
0
 

Author Closing Comment

by:sudheer_k
ID: 39675109
Thanks. This is good.
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 39675767
Which did you end up using?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question