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";
JavaScript
Opinions expressed by DZone contributors are their own.
Comments