Blog

Know hostname of a computer.

By Rahul Kumar Saxena Blogs | Learn .NET Sep 06, 2010
To find out the hostname of a computer use the below code...

using System.Net; 

protected void Page_Load(object sender, EventArgs e)
{
     Response.Write(Dns.GetHostName());
}

COMMENT USING