How to get a javascript variable in aspx page?

Posted by Rahultk under JavaScript on 4/19/2011 | Points: 10 | Views : 4601 | Status : [Member] | Replies : 1
How can i get a javascript variable in my aspx page and wiseversa .




Responses

Posted by: Ndebata on: 4/19/2011 [Member] Starter | Points: 25

Up
0
Down
Hi

You can get JavaScript variable value in server side using callback.
That is you have to call a function on certain event on which you want to pass the values to server side.

To implement callback please take a look at the following link
http://msdn.microsoft.com/en-us/library/ms178208.aspx

And you can get server side variable by using
"<%=Variabename %>"


Thanks
Debata

Rahultk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response