Please explain about how to read a session variable in JavaScript which is defined externally.
Can we read this within the page?
Home / DeveloperSection / Forums / Session variable in Java script
Please explain about how to read a session variable in JavaScript which is defined externally.
Can we read this within the page?
Anonymous User
15-Oct-2010Uttam Misra
15-Oct-2010use global variable in your ASPX file : var sessionValue = '<%= Session["YourKey"] %>'.
Now this global variable will be visible to the external JavaScript files that's included in the page.You can use "sessionValue" as you need.