|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How do I transfer a value from a Querystring (codebehind) to a JavaScript function?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. 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. > > both.
"KMILO" <cam***@cohete.net> wrote in message Please be more expecific, what do you need to do? Transfer a querystringnews:OfI75vbSFHA.3544@TK2MSFTNGP12.phx.gbl... 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. > > 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. >> >> > > 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. > >
Datalist and LoadTemplate
Weird "defined in multiple places" error Form Post Back in ASP.Net 1.1 Referencing to .ascx How do I set the value of a checkbox on my repeater control? ASP.NET project and Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Losing selectedIndex on Control inherted from ListBox during postback Enabled / Disabled my control How to get the file's name after click the Browse... in HtmlInputFile How to Remove item from DropDownList ? |
|||||||||||||||||||||||