ASP.NET(vb.net) Server.MachineName() - Server Object - Server.MachineName() : Gets the server’s computer name.
ShotDev Focus:
- ASP.NET(vb.net) Server.MachineName() - Server Object
Example
AspNetServerMachineName.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) Me.lblText.Text = Server.MachineName() End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:Label id="lblText" runat="server"></asp:Label><br /> </form> </body> </html>
Screenshot