Access Server Side Variable In Javascript
Join the DZone community and get the full member experience.
Join For FreeAdd following javascript function to aspx page
โ
โ
function check() {
alert("this is check value " + '<%= checkvalue %>');
}
โ
โ
Add following variable declaration on server side i.e aspx.cs
โ
public string checkvalue ="indrnilhafa";
โ
โ
Opinions expressed by DZone contributors are their own.
Comments