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