Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 21, 2008 08:47 PM by nikki_doer_of_things
Feb 21, 2008 08:32 PM|LINK
I have a value in my class which is in my app code.
I need to pass this value to one of my method in javascipt.
How to do that.
Feb 21, 2008 08:46 PM|LINK
Feb 21, 2008 08:47 PM|LINK
You can't "pass" it per se, as the client side script and the server side script execute at different times. If it is available and in scope at the time your script is generated you can do the usual <%=yourvar%> to pop the current value inline. Otherwise
you need to dynamically generate the script itself and register the client side script block.