A
adam
Hi ASP Expert,
My goal is to retrieve my local machine's %USERNAME% environment variable
from ASP page.
When I enter http://RemoteServerName/testusername.asp?id=%USERNAME% directly
into the IE Browser URL box, %USERNAME% is repalced with the local machine
ID. However, when I create a
<a href="http://RemoteServerName/testusername.asp?id=%USERNAME%"> get
mahcine id</a> in an html file and use Request.Querystring("id") to retrieve
it in testusername.asp page, it returns "%USERNAME%". I guess IE browser is
smart enough to replace %USERNAME% with the local environment variable value
before sending URL string to the web server when you type directly into the
Browser URL box.
My question is , is there any way to retrieve local machine's environment
variable, %USERNAME% from ASP page?
Thanks very much!!!
My goal is to retrieve my local machine's %USERNAME% environment variable
from ASP page.
When I enter http://RemoteServerName/testusername.asp?id=%USERNAME% directly
into the IE Browser URL box, %USERNAME% is repalced with the local machine
ID. However, when I create a
<a href="http://RemoteServerName/testusername.asp?id=%USERNAME%"> get
mahcine id</a> in an html file and use Request.Querystring("id") to retrieve
it in testusername.asp page, it returns "%USERNAME%". I guess IE browser is
smart enough to replace %USERNAME% with the local environment variable value
before sending URL string to the web server when you type directly into the
Browser URL box.
My question is , is there any way to retrieve local machine's environment
variable, %USERNAME% from ASP page?
Thanks very much!!!