Suggestion for Whidbey: Page declaration or config-level redirect property for mobile devices
I'm not sure if this is factored into the Whidbey beta feature set already, but keeping with the goal of reducing the total amount of programming code, I think a worthwhile addition would be a property that could be set at the Page declaration level or in a configuration file that would set a URL to redirect requests in the case a page contained content for mobile devices.
For example, the following construct is used all the time as a means of redirecting requests from desktop browsers to mobile pages:
if(Request.Browser[“IsMobileDevice”] == “true“)
// load mobile content
Perhaps something like this:
<% @Page Language=“C#” RedirectUrlIfNotMobileDevice=“http://www.mydesktopsite.com” %>
or, in web.config:
What do you think?