setting a server variable?
setting a server variable?
am 06.03.2007 18:15:10 von Jack Vamvas
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
Re: setting a server variable?
am 06.03.2007 18:26:45 von reb01501
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"
Re: setting a server variable?
am 06.03.2007 22:49:28 von McKirahan
"Jack Vamvas" 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...
Re: setting a server variable?
am 07.03.2007 10:01:29 von Jack Vamvas
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
"Bob Barrows [MVP]" wrote in message
news:u8OddSBYHHA.2552@TK2MSFTNGP06.phx.gbl...
> 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"
>
Re: setting a server variable?
am 07.03.2007 10:36:23 von Anthony Jones
"McKirahan" wrote in message
news:UoqdnRM2e9VnfHDYnZ2dnUVZ_oannZ2d@comcast.com...
> "Jack Vamvas" 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...
>
>
Me thinks you have your tongue in cheek ;)
Re: setting a server variable?
am 07.03.2007 13:42:15 von McKirahan
"Anthony Jones" wrote in message
news:uDKoTwJYHHA.4872@TK2MSFTNGP03.phx.gbl...
>
> "McKirahan" wrote in message
> news:UoqdnRM2e9VnfHDYnZ2dnUVZ_oannZ2d@comcast.com...
> > "Jack Vamvas" 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...
> >
> >
>
> 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}".
Re: setting a server variable?
am 07.03.2007 14:41:41 von Anthony Jones
"McKirahan" wrote in message
news:l9adnWKSboOgLnPYnZ2dnUVZ_qunnZ2d@comcast.com...
> "Anthony Jones" wrote in message
> news:uDKoTwJYHHA.4872@TK2MSFTNGP03.phx.gbl...
> >
> > "McKirahan" wrote in message
> > news:UoqdnRM2e9VnfHDYnZ2dnUVZ_oannZ2d@comcast.com...
> > > "Jack Vamvas" 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...
> > >
> > >
> >
> > 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}".
>
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?
Re: setting a server variable?
am 08.03.2007 00:31:19 von McKirahan
"Anthony Jones" 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...
Re: setting a server variable?
am 21.03.2007 22:01:21 von unknown
I implemented the session solution.Works fine
Thanks
Jack
http://www.itjobfeed.com