Get global variable in external js page
hi alli have created a class.cs page and passing a value from first.aspx.cs page to class.cs.
And i am getting the global variable in second.aspx.cs page.
But i want to get that global variable in external js page.
Please tell me the code for that.
for getting the global variable in second.aspx.cs page by using the below code
string globalvalues = Globalvar.GlobalValue;-------------------------this is working fine
in js page i have used the below 3 types of codes
---------------------------------------------------
var globalvalues = $('#Globalvar.GlobalValue');
var globalvalues = '<%= Globalvar.GlobalValue %>';
var globalvalues = '@Globalvar.GlobalValue';
----------------------------these are not working