System.Web Namespace HttpRequest Class
Gets the raw user agent string of the client browser.
[ VB ]
Public ReadOnly Property UserAgent As String
[ C# ]
public string UserAgent {get;}
[ C++ ]
public: __property String* get_UserAgent ( );
[ JScript ]
public function get UserAgent ( ) : String;
The raw user agent string of the client browser.
The following example shows the simplest way to retrieve and display the UserAgent for the current URL request.
<%= Request.UserAgent %>
Show me
HttpRequest Members