ASP.Net/Server/Server Info

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

Accessing the MachineName Property (VB.net)

<%@ Page Language="VB" %>
<html>
<head>
   <title>Accessing the MachineName Property</title>
   <script runat="server">
      Sub GetMachineName()
         Dim ServerName As String
         ServerName = Server.MachineName
         Response.Write("The name of the server is " & ServerName & ".<br>")
      End Sub
   </script>
</head>
<body>
<% GetMachineName %>
</body>
</html>