.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani

Home >> Code Snippets >> Visual Studio >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Request.UserHostAddress (VB.net)

Posted By:papsantony       Posted Date: August 13, 2010    Points: 10    Category: Visual Studio    URL: http://www.dotnetspark.com  

Request.UserHostAddress (VB.net)

<%@ Page Language="vb" %>
      Displaying the HTTP headers collection in ASP.NET

Dim HostAddress, HostName, Languages() As String
Dim iCounter As Integer

HostAddress = Request.UserHostAddress
HostName = Request.UserHostName
Languages = Request.UserLanguages

Response.Write("Client IP Address: " & HostAddress & "
Response.Write("Client Machine Name: " & HostName & "
For iCounter = To Languages.GetUpperBound(0)
   Response.Write("Client Language " & iCounter & ": " & CStr(Languages(iCounter)) "
Next iCounter



Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend