Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 12, 2012 12:07 AM by roopeshreddy
Member
589 Points
463 Posts
Apr 11, 2012 12:16 PM|LINK
I'm using ASP .NET MVC2 and jquery UI Autocomplete.
Sometimes application runs in Samsung Galaxy Tab.
In this case it is very difficult to select from jquery UI autocomplete.
How to dedect Samsung Galaxy tab and render select element in this case ?
I tried
HttpContext.Current.Request.Browser.IsMobileDevice
but it returns false for tab.
Contributor
2881 Points
517 Posts
Apr 11, 2012 12:19 PM|LINK
Try
Request.Browser["is_tablet"]
Or
Request.UserAgent.ToString().Contains("android")
Also refer this site it has various scripts for detecting mobile browsers for asp.net,jquery etc.
http://detectmobilebrowsers.com/
All-Star
20155 Points
3328 Posts
Apr 12, 2012 12:07 AM|LINK
Hi,
I think ASP.NET MVC 3 and above has good support for detecting Mobile devices!
In MVC2, you may have to to do the UserAgent sniffing etc.,
Hope it helps u...
kobruleht
Member
589 Points
463 Posts
How to dedect tabloid in controller
Apr 11, 2012 12:16 PM|LINK
I'm using ASP .NET MVC2 and jquery UI Autocomplete.
Sometimes application runs in Samsung Galaxy Tab.
In this case it is very difficult to select from jquery UI autocomplete.
How to dedect Samsung Galaxy tab and render select element in this case ?
I tried
HttpContext.Current.Request.Browser.IsMobileDevice
but it returns false for tab.
avinash_bhud...
Contributor
2881 Points
517 Posts
Re: How to dedect tabloid in controller
Apr 11, 2012 12:19 PM|LINK
Try
Request.Browser["is_tablet"]
Or
Request.UserAgent.ToString().Contains("android")
Also refer this site it has various scripts for detecting mobile browsers for asp.net,jquery etc.
http://detectmobilebrowsers.com/
roopeshreddy
All-Star
20155 Points
3328 Posts
Re: How to dedect tabloid in controller
Apr 12, 2012 12:07 AM|LINK
Hi,
I think ASP.NET MVC 3 and above has good support for detecting Mobile devices!
In MVC2, you may have to to do the UserAgent sniffing etc.,
Hope it helps u...
Roopesh Reddy C
Roopesh's Space