Is a new instance of HttpContext.Current.Items when an Ajax request (Ajax using __doPostBack() from JavaScript)? Those. if in the previous ajax request Items contained something, then will the Items contain something in the new ajax request?
1 answer
HttpContext.Items - a collection that persists within a single request (it does not matter: normal, PostBack or Ajax). Elements are not saved between requests. If you want to save data between requests, use HttpContext.Session .
|