What ASP.NET object is used to get information about the web servers hostname?
-
The Session object.
-
The Application object.
-
The Response object.
-
The Server object
D
Correct answer
Explanation
The Server object provides access to server-related information and utilities. To get the web server's hostname, you would use Server.MachineName or access server variables through ServerVariables. The Session object (option A) stores user-specific data, Application (option B) stores application-wide state, and Response (option C) sends output to the client.