Mega Code Archive

 
Categories / ASP.Net Tutorial / Page Lifecycle
 

Request ServerVariables

<%@ Page Language="vb" %> <html>    <head>       <title>Request property example</title>       <script runat="server">          Sub Page_Load()             Message.Text = "The current request is from: " & _                CStr(Request.ServerVariables.Item("REMOTE_ADDRESS"))          End Sub       </script>    </head> <body>    <asp:label id="Message" runat="server"/> </body> </html>