Home All Groups Group Topic Archive Search About

How do I transfer a value from a Querystring (codebehind) to a JavaScript function?

Author
25 Apr 2005 2:15 PM
aaa
I'm a little baffled on how I transfer a value from a Querystring in code
behind and then transfer it to a javascript function. Any help is
appreciated.

Author
25 Apr 2005 5:31 PM
KMILO
Please be more expecific, what do you need to do? Transfer a querystring value to javascript and generate a postback or make available the value to js without postback!!!

Cheers

KMILO.

Show quoteHide quote
"aaa" <some***@microsoft.com> wrote in message news:e9P6zEaSFHA.244@TK2MSFTNGP12.phx.gbl...
> I'm a little baffled on how I transfer a value from a Querystring in code
> behind and then transfer it to a javascript function. Any help is
> appreciated.
>
>
Author
25 Apr 2005 6:21 PM
aaa
both.

"KMILO" <cam***@cohete.net> wrote in message
news:OfI75vbSFHA.3544@TK2MSFTNGP12.phx.gbl...
Please be more expecific, what do you need to do? Transfer a querystring
value to javascript and generate a postback or make available the value to
js without postback!!!

Cheers

KMILO.

Show quoteHide quote
"aaa" <some***@microsoft.com> wrote in message
news:e9P6zEaSFHA.244@TK2MSFTNGP12.phx.gbl...
> I'm a little baffled on how I transfer a value from a Querystring in code
> behind and then transfer it to a javascript function. Any help is
> appreciated.
>
>
Author
28 Apr 2005 1:31 PM
KMILO
Hello Again,

Sorry for the late answer :) I wasnt in the office the last few days.

Heres a way to do what you want:
this.Page.RegisterClientScriptBlock("variables","<script>VARIABLE=\""+ this.Page.Request.QueryString["VARIABLENAME"] + "\";</script>");
this script will be registered in the next postback and the following thing to do is make a direct reference of the variable into your js code!!

If you want a pure client side querystring check this url: https://lists.latech.edu/pipermail/javascript/2003-February/004828.html

Cheers

KMILO

Show quoteHide quote
"aaa" <some***@microsoft.com> wrote in message news:O6rFQOcSFHA.3144@tk2msftngp13.phx.gbl...
> both.
>
> "KMILO" <cam***@cohete.net> wrote in message
> news:OfI75vbSFHA.3544@TK2MSFTNGP12.phx.gbl...
> Please be more expecific, what do you need to do? Transfer a querystring
> value to javascript and generate a postback or make available the value to
> js without postback!!!
>
> Cheers
>
> KMILO.
>
> "aaa" <some***@microsoft.com> wrote in message
> news:e9P6zEaSFHA.244@TK2MSFTNGP12.phx.gbl...
>> I'm a little baffled on how I transfer a value from a Querystring in code
>> behind and then transfer it to a javascript function. Any help is
>> appreciated.
>>
>>
>
>
Author
28 Apr 2005 1:37 PM
KMILO
Author
27 Apr 2005 8:32 PM
aaa
Can someone help me with this please?

Show quoteHide quote
"aaa" <some***@microsoft.com> wrote in message
news:e9P6zEaSFHA.244@TK2MSFTNGP12.phx.gbl...
> I'm a little baffled on how I transfer a value from a Querystring in code
> behind and then transfer it to a javascript function. Any help is
> appreciated.
>
>