ikeyser
asked on
Set Session Variable
I have a form that has a button that on click makes an ajax call to a webservice that returns an entityobject. How can i pass a value from the returned object to a session variable? I am using jquery.ajax().
ASKER
Can you provide an example?
Check this :
http://codeforeternity.com/blogs/technology/archive/2007/12/19/handling-asp-net-session-variables-efficiently.aspx
...maybe an handler is better than a webservice...
http://codeforeternity.com/blogs/technology/archive/2007/12/19/handling-asp-net-session-variables-efficiently.aspx
...maybe an handler is better than a webservice...
ASKER
Thank you for the link but it doesn't provide an example of how I can pass data I get back from the ajax call.
You will have to make a second AJAX call to a server-side page to set the session variable.
ASKER
Example please
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for the points!
A new ajax call ? Or if possible, set it in the web service