Identifying DeviceType using “UserAgent” in ASP.NET

A number of blogs and sites already has written on how we could use “UserAgent” to identify the device type, OS, browser version etc., of the requestor.  But when it came to .net except for the “Request.Browser.IsMobileDevice” there isn’t any inbuilt mechanism to identify the type of device.  Another caveat is that the “Request.Browser.IsMobileDevice” isn’t foolproof and doesn’t support all devices that exist in the market either.

When I had to look for pre-existing options, I stumbled upon some HttpModules ( which offers limited properties free of cost, but the rest is offered based on license fee.  There are also free downloads offered by WURFL ( that provides a database bank of all (known) UserAgents for use in projects.

Continue reading

1,938 total views, no views today