| Author |
setting a server variable?
|
|
| Jack Vamvas 2007-03-06, 1:22 pm |
| I know that you can do : Request.ServerVariables("QUERY_STRING") but can
you actually set a serverVariable?
I know that sounds counter intuitive , but is it possible, via vbscipt/asp?
--
Jack Vamvas
___________________________________
The latest IT jobs - www.ITjobfeed.com
<a href="http://www.itjobfeed.com">UK IT Jobs</a>
| |
| Bob Barrows [MVP] 2007-03-06, 1:22 pm |
| Jack Vamvas wrote:
> I know that you can do : Request.ServerVariables("QUERY_STRING") but
> can you actually set a serverVariable?
> I know that sounds counter intuitive , but is it possible, via
> vbscipt/asp?
No. Anything contained by the Request object is read-only. What's wrong with
session or application variables?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
| |
| McKirahan 2007-03-06, 7:22 pm |
| "Jack Vamvas" <DEL_TO_REPLY@del.com> wrote in message
news:BNydnWvSL_kAPHDYRVnytwA@bt.com...
> I know that you can do : Request.ServerVariables("QUERY_STRING") but
can
> you actually set a serverVariable?
> I know that sounds counter intuitive , but is it possible, via
vbscipt/asp?
You can set an Environment Variable in the registry...
| |
| Jack Vamvas 2007-03-07, 7:25 am |
| This is part of a problem I'm having with Server.Transfer , whereby I'm
doing a Server.Transfer to a page that has query string parameters ,(which
is not allowed).
I think you are right Session Variables are the way to go.
--
Jack Vamvas
___________________________________
The latest IT jobs - www.ITjobfeed.com
<a href="http://www.itjobfeed.com">UK IT Jobs</a>
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:u8OddSBYHHA.2552@TK2MSFTNGP06.phx.gbl...
> Jack Vamvas wrote:
>
> No. Anything contained by the Request object is read-only. What's wrong
> with session or application variables?
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
| |
| Anthony Jones 2007-03-07, 7:25 am |
|
"McKirahan" <News@McKirahan.com> wrote in message
news:UoqdnRM2e9VnfHDYnZ2dnUVZ_oannZ2d@co
mcast.com...
> "Jack Vamvas" <DEL_TO_REPLY@del.com> wrote in message
> news:BNydnWvSL_kAPHDYRVnytwA@bt.com...
> can
> vbscipt/asp?
>
> You can set an Environment Variable in the registry...
>
>
Me thinks you have your tongue in cheek ;)
| |
| McKirahan 2007-03-07, 7:25 am |
| "Anthony Jones" <Ant@yadayadayada.com> wrote in message
news:uDKoTwJYHHA.4872@TK2MSFTNGP03.phx.gbl...
>
> "McKirahan" <News@McKirahan.com> wrote in message
> news:UoqdnRM2e9VnfHDYnZ2dnUVZ_oannZ2d@co
mcast.com...
but[vbcol=seagreen]
>
> Me thinks you have your tongue in cheek ;)
Not so.
(Windows XP) set the System Environment Variable
via Control Panel + System + Advanced + Environment Variables.
(Windows 98) set the Volatile Environment Variable
via scripting to create "HKCU\Volatile Environment\{variable}".
| |
| Anthony Jones 2007-03-07, 1:22 pm |
|
"McKirahan" <News@McKirahan.com> wrote in message
news:l9adnWKSboOgLnPYnZ2dnUVZ_qunnZ2d@co
mcast.com...
> "Anthony Jones" <Ant@yadayadayada.com> wrote in message
> news:uDKoTwJYHHA.4872@TK2MSFTNGP03.phx.gbl...
> but
>
> Not so.
>
> (Windows XP) set the System Environment Variable
> via Control Panel + System + Advanced + Environment Variables.
>
> (Windows 98) set the Volatile Environment Variable
> via scripting to create "HKCU\Volatile Environment\{variable}".
>
Yes, yes I know it's possible. It's just such a really bad idea I thought
you were joking.
Why would you want to do that instead of using the application/session
object?
Or do you imagine that system environment variables some how equate to
Request.ServerVariables?
| |
| McKirahan 2007-03-07, 7:21 pm |
|
"Anthony Jones" <Ant@yadayadayada.com> wrote in message
news:uzutX5LYHHA.2268@TK2MSFTNGP06.phx.gbl...
[snip]
> Yes, yes I know it's possible. It's just such a really bad idea I thought
> you were joking.
>
> Why would you want to do that instead of using the application/session
> object?
>
> Or do you imagine that system environment variables some how equate to
> Request.ServerVariables?
You're correct.
I didn't notice the group when I responded to the post.
I was thinking about a WSH / VBScript solution not ASP.
My bad...
| |
| http://www.itjobfeed.com 2007-03-21, 7:20 pm |
| I implemented the session solution.Works fine
Thanks
Jack
http://www.itjobfeed.com
|
|
|
|