Ask a Question related to ASP Components, Design and Development.
-
adam #1
Retrieve local machine's environment variable from ASP page
Hi ASP Expert,
My goal is to retrieve my local machine's %USERNAME% environment variable
from ASP page.
When I enter [url]http://RemoteServerName/testusername.asp?id=%USERNAME%[/url] 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!!!
-adam
adam Guest
-
How to retrieve locked NEW PAGE?
(C3) My client has a writer and a publisher. The writer created a new page (thus I cannot yet see it by logging into the site through Dreamweaver).... -
Need to Access a Local Variable
How do I access a variable that is generated within a function? For example, in the code below, I need to access the "count" variable (which is... -
Reading Environment Variable
Has anyone got a tip for reading an environment variable on a client desktop into a cookie. Triyng to make a seamless integration on an intranet... -
#25071 [Opn->Bgs]: Let include/require look in PHP_INCLUDE environment variable
ID: 25071 Updated by: sniper@php.net Reported By: jakob dot nielsen at nhst dot no -Status: Open +Status: ... -
#25071 [NEW]: Let include/require look in PHP_INCLUDE environment variable
From: jakob dot nielsen at nhst dot no Operating system: Whatever PHP version: Irrelevant PHP Bug Type: Feature/Change... -
Anthony Jones #2
Re: Retrieve local machine's environment variable from ASP page
"adam" <adam@discussions.microsoft.com> wrote in message
news:B827A4F0-6073-4E71-9E0F-1DE5F361F514@microsoft.com...directly> Hi ASP Expert,
>
> My goal is to retrieve my local machine's %USERNAME% environment variable
> from ASP page.
> When I enter [url]http://RemoteServerName/testusername.asp?id=%USERNAME%[/url]retrieve> 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") tois> it in testusername.asp page, it returns "%USERNAME%". I guess IE browservalue> smart enough to replace %USERNAME% with the local environment variablethe> before sending URL string to the web server when you type directly intoThis is the third NG I've noticed you've posted this too. Multiposting is> Browser URL box.
>
> My question is , is there any way to retrieve local machine's environment
> variable, %USERNAME% from ASP page?
>
rude, don't do it.
> Thanks very much!!!
>
> -adam
>
Anthony Jones Guest
-
Carlos Vítor Barros #3
Re: Retrieve local machine's environment variable from ASP page
Not sure about the environment variable, but if you are using NTLM or even
basic authentication within your site, you can retrieve the current logged
user on the machine by acessing Request.ServerVariables("AUTH_USER").
Hope it helps,
--
--------------------------------------
Carlos Vítor Barros
- Web Developer
--------------------------------------
"adam" <adam@discussions.microsoft.com> escreveu na mensagem
news:B827A4F0-6073-4E71-9E0F-1DE5F361F514@microsoft.com...> Hi ASP Expert,
>
> My goal is to retrieve my local machine's %USERNAME% environment variable
> from ASP page.
> When I enter [url]http://RemoteServerName/testusername.asp?id=%USERNAME%[/url]
> 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!!!
>
> -adam
>
Carlos Vítor Barros Guest



Reply With Quote

