MobileDevice Property (.NET)

 

Type: Boolean

 

Returns True if the browser is running on a mobile device. False otherwise.

 

Note: The iPad is not categorized by BrowserHawk as a mobile device by design. Therefore this property will return False for the iPad. This decision was made based on feedback from customers who desire to treat the iPad like a traditional browser due to its larger screen size.  You can, however, detect the iPad simply by using the DeviceName property.

 

C# Example:

<%

      BrowserObj browObj = BrowserObj.GetBrowser();

      if (browObj.MobileDevice == true) {

        Response.Redirect("http://mobile.mysite.com/");

     }

    %>

 

See Also:

DeviceName Property (.NET)

Detecting Mobile Devices