Solved

How to Get Server Name in ASP.NET

Posted on 2013-02-05
2
180 Views
Last Modified: 2013-02-26
Hi all,

Please let me know how to get server name in asp.net.  Thanks.

Regards,
Wilson
0
Comment
Question by:wclwong
2 Comments
 
LVL 23

Expert Comment

by:Ioannis Paraskevopoulos
ID: 38854383
Hi,

Request.ServerVariables["SERVER_NAME"] 

Open in new window


Giannis
0
 
LVL 1

Accepted Solution

by:
mgbm_it earned 500 total points
ID: 38854463
you can use
System.Environment.MachineName
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question