I know in ASP.NET MVC you can have mobile views and do things like Index.mobile.cshtml
and _Layout.mobile.cshtml
and the server knows to serve these views/pages to mobile devices rather than Index.cshtml
and _Layout.cshtml
, but can this also be done in plain ASP.NET websites (not using MVC)?
Note : I am using razor syntax in the plain ASP.NET website.
Thanks in advance.
-- Lee
UPDATE :
To clarify, I am aware of the various browser detection methods. My question is specifically about whether mobile views in the form Index.mobile.cshtml
are available in plain ASP.NET.
UPDATE (Functionality now included in ASP.NET latest release announced 18th February 2013) :
Talk of the devil.. this is now possible in a recent release.. Scroll down the page to the heading 'ASP.NET Web Forms Enhancements'