asp.net.ph

Request.UserAgent Property

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;

Property Value

The raw user agent string of the client browser.

Example

The following example shows the simplest way to retrieve and display the UserAgent for the current URL request.

<%= Request.UserAgent %>

 Show me 

See Also

HttpRequest Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph