Hi,
I'm trying to find the equivanlent of the following javascript in .NET:
document.write ("ip= " + window.location.hostname + "<br>");
document.write ("uri= " + window.location.pathname + "<br>");
I've tried the following in .NET but they don't quite give me the same results:
Dim ip As String = "&dcssip=" & Request.UserHostName
Dim uri As String = "&dcsuri=" & Request.Path
IP: Looks like the JavaScript version gives me a server name and the .NET version gives me an IP address.
URI: Looks like the JavaScript version returns the pathname including the gateway while the .NET version does not.
I'd like to get the same info using .NET as JavaScript. Any ideas????
Any help would greatly be appreciated.
I'm trying to find the equivanlent of the following javascript in .NET:
document.write ("ip= " + window.location.hostname + "<br>");
document.write ("uri= " + window.location.pathname + "<br>");
I've tried the following in .NET but they don't quite give me the same results:
Dim ip As String = "&dcssip=" & Request.UserHostName
Dim uri As String = "&dcsuri=" & Request.Path
IP: Looks like the JavaScript version gives me a server name and the .NET version gives me an IP address.
URI: Looks like the JavaScript version returns the pathname including the gateway while the .NET version does not.
I'd like to get the same info using .NET as JavaScript. Any ideas????
Any help would greatly be appreciated.