Here is my code :
var activitytaskid = "<%= Session['currentTask']%>";
Am not able to get the session value with following key, please help me out. Thanks
Here is my code :
var activitytaskid = "<%= Session['currentTask']%>";
Am not able to get the session value with following key, please help me out. Thanks
Please try modifying your code.
var activitytaskid = '<%= Session["currentTask"]%>';
And remember this will contain rendered value. The value of activitytaskid will be initialized at the time page is rendered.
EDIT
Yes browser will show this string as session is server side so value will be rendered in javascript varaible.
So when you view source of html page, value will be displayed in plain text
Is this java? If so that should read "session" with a lowercase 's'. If the case is correct, make sure you have set the currentTask session variable somewhere.