06 Jul 2018 06 Jul 2018 0 Comments  476 Views
Here Mudassar Ahmed Khan has explained with an example, why Request.Browser.IsMobileDevice property does not work in ASP.Net.

ASP.Net does have in-built mobile phone browser detection capabilities and you can check whether user is using a Mobile phone browser or Desktop browser using the Request.Browser.IsMobileDevice property.

But with time, new Operating Systems and Mobile devices are being launched, thus since the information for is not present the Mobile Devices are not being detected.
06 Jul 2018 06 Jul 2018 0 Comments  389 Views
Here Mudassar Ahmed Khan has explained with an example, how to detect mobile phone browser (mobile device) in ASP.Net MVC Razor.

With the help of Regular Expressions (Regex), one can easily detect and find whether the User is using a Desktop browser or mobile phone browser (mobile device) in ASP.Net MVC Razor.