Type: String
Returns the product name of the type of mobile device. For example, "iPhone", "iPod Touch", "iPad", "Pre", "Droid", "Nexus One", "Pixi", and "Blackberry".
C# Example:
<%
BrowserObj browObj = BrowserObj.GetBrowser();
if (browObj.DeviceName == "iPhone") {
Response.Redirect("http://iphone.mysite.com/");
else if (browObj.DeviceName == "iPod Touch") {
Response.Redirect("http://itouch.mysite.com/");
else if (browObj.DeviceName == "iPad") {
Response.Redirect("http://ipad.mysite.com/");
else if (browObj.DeviceName == "Droid") {
Response.Redirect("http://droid.mysite.com/");
else if (browObj.DeviceName == "Blackberry") {
Response.Redirect("http://blackberry.mysite.com/");
else if (browObj.DeviceName == "Pre") {
Response.Redirect("http://palmpre.mysite.com/");
else if (browObj.DeviceName == "Pixi") {
Response.Redirect("http://pixi.mysite.com/");
else if (browObj.DeviceName == "Nexus One") {
Response.Redirect("http://nexusone.mysite.com/");
else if (browObj.MobileDevice == true) {
Response.Redirect("http://othermobile.mysite.com/");
}
%>
See Also: