I have a website that detects mobile browsers and loads a different page to said devices. However, when I load the page in the UIWebView in my iphone app, it loads the default page instead of the mobile page. How can I tell the site that I'm a mobile browser?
My site is an ASP.NET site, with the following C# code implemented in each PageName.aspx.cs file for mobile redirecting:
if(Request.Browser["IsMobileDevice"] == "true")
{
Response.Redirect("mResults.aspx");
}
else
{
Response.Redirect("Results.aspx");
}