Hi,
I am developing Mobile Application in ASP.NET 3.5.
I want to know that request has came from which mobile device ie. BlackBerry or IPhone or other mobile device.
I am using Request.Browser.MobileDeviceModel for getting the mobile device name.
I am accessing Mobile Application from BlackBerry.
I am getting "Unknown" from Request.Browser.MobileDeviceModel.
I am not able to know why it is giving Unknown it must give "BlackBerry".
Can any one tell if I am doing wrong or what i need to do to get the name of the mobile device.
Thanks in Advance.
Regards,
Rahul
Loading
Rahul RathiPosted Sep 13, 2010, 9:36 AM
Even Request.Browser.IsMobileDevice is returning false.
Thanks,
Rahul
Mahesh ChandPosted Sep 13, 2010, 8:41 AM
HttpBrowserCapabilities bc = Request.Browser;
Response.Write("
Browser Capabilities:
");Response.Write("Type = " + bc.Type + "
");
Response.Write("Name = " + bc.Browser + "
");
Response.Write("Version = " + bc.Version + "
");
Response.Write("Major Version = " + bc.MajorVersion + "
");
Response.Write("Minor Version = " + bc.MinorVersion + "
");
Response.Write("Platform = " + bc.Platform + "
");
Response.Write("Is Beta = " + bc.Beta + "
");
Response.Write("Is Crawler = " + bc.Crawler + "
");
Response.Write("Is AOL = " + bc.AOL + "
");
Response.Write("Is Win16 = " + bc.Win16 + "
");
Response.Write("Is Win32 = " + bc.Win32 + "
");
Response.Write("Supports Frames = " + bc.Frames + "
");
Response.Write("Supports Tables = " + bc.Tables + "
");
Response.Write("Supports Cookies = " + bc.Cookies + "
");
Response.Write("Supports VB Script = " + bc.VBScript + "
");
Response.Write("Supports JavaScript = " + bc.JavaScript + "
");
Response.Write("Supports Java Applets = " + bc.JavaApplets + "
");
Response.Write("Supports ActiveX Controls = " + bc.ActiveXControls + "
");
Response.Write("CDF = " + bc.CDF + "
");