Saturday, March 24, 2012

passing variables from vb.net to javascript

hi is there any way to pass a variable from vb.net to javascript? and something other than putting a hidden label on the page and also without using cookies...
...thank u

elenaHi Elena,

asp.net (vb.net is the language that you can write it with) is a server side technology and javascript is a client side one. But you can pass data.

In the html part place a literal control where you want the variable data to appear when it's rendered. In code-behind you fill up the Text property of the literal control.

Grz, Kris.

0 comments:

Post a Comment