how can i get server value from *.js?
-
I have A.js file and I need to get server value which is in *.cs code.
for example below code is working in aspx page but not working A.js file.
var hiddenYear_id = "<%=common_config.hiddenYear_id%>";
So how can i get "<%=common_config.hiddenYear_id%>" value?
Have a nice day.
hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~
-
I have A.js file and I need to get server value which is in *.cs code.
for example below code is working in aspx page but not working A.js file.
var hiddenYear_id = "<%=common_config.hiddenYear_id%>";
So how can i get "<%=common_config.hiddenYear_id%>" value?
Have a nice day.
hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~
Hi Dear, it's not possible without .aspx because .js file(s) are loaded when page loads and remain in cache for future. when u write your code in aspx it executes on server and return values of server variable(s). but in .js file code will not executes when page loads. i think it's not possible... DineshT Senior Software Developer Professional Softec Pvt. Ltd. Jaipur (India)