setting a server variable?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > setting a server variable?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    setting a server variable?  
Jack Vamvas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-06-07 06: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>








[ Post a follow-up to this message ]



    Re: setting a server variable?  
Bob Barrows [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-06-07 06: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"







[ Post a follow-up to this message ]



    Re: setting a server variable?  
McKirahan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 12:22 AM

"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...







[ Post a follow-up to this message ]



    Re: setting a server variable?  
Jack Vamvas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 12:25 PM

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"
>







[ Post a follow-up to this message ]



    Re: setting a server variable?  
Anthony Jones


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 12:25 PM


"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 ;)







[ Post a follow-up to this message ]



    Re: setting a server variable?  
McKirahan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 12:25 PM

"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}".







[ Post a follow-up to this message ]



    Re: setting a server variable?  
Anthony Jones


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 06: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?









[ Post a follow-up to this message ]



    Re: setting a server variable?  
McKirahan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-08-07 12:21 AM


"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...







[ Post a follow-up to this message ]



    Re: setting a server variable?  
http://www.itjobfeed.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-22-07 12:20 AM

I implemented the session solution.Works fine



Thanks

Jack

http://www.itjobfeed.com





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:20 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register