I have an ASP.NET MVC page, and inside the page I will make a few AJAX call.
What is the property inside the Controller
whose values are persisted as long as the page is still there ( even during AJAX call), and are destroyed when I switch to other page request?
Controller.Session
's keys and values, as we all know it, are alive and accessible all the time. Controller.Request
are alive when the page is constructed or when an AJAX call is made. Request
variables don't persist from a normal page call to subsequent AJAX call at the same page.
Any ideas?