This comprehensive tutorial will walk you step-by-step to create a single ASP.NET page by which you will be able to retrieve the server name .http://www.stardeveloper.com/articles/display.html?article=2002111501&page=1