asp.net mvc web api - mobile views

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.
sudheer_kAsked:
Who is Participating?
 
Eddie ShipmanConnect With a Mentor All-around developerCommented:
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
 
Craig WagnerSoftware ArchitectCommented:
ASP.NET Web API doesn't return views, it returns data (XML, JSON, etc).

Did you mean ASP.NET MVC?
0
 
sudheer_kAuthor Commented:
Oh ya. That should work fine.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
sudheer_kAuthor Commented:
Thanks. This looks fair to me.
0
 
sudheer_kAuthor Commented:
Thanks. This is good.
0
 
Eddie ShipmanAll-around developerCommented:
Which did you end up using?
0
All Courses

From novice to tech pro — start learning today.