How to detect a mobile device in ASP.NET

This ASP.NET tutorial explains how to detect a mobile device in ASP.NET.

ASP.NET Developers can detect a mobile device using the following ASP.NET code:

if (Request.Browser.IsMobileDevice)