ASP.NET AJAX and keeping the session alive - What is the standard way to do this?

A long time ASP.NET Webforms developer, new to Ajax development (mainly using the UpdatePanel! Control).

Since no postbacks occur, the server does not reset the user session timeout counter, even if the user interacts with the page and updates parts of it.

I would like to know what is the easiest and most standard way to save an ASP.NET session when you develop Ajax using UpdatePanel;

Please indicate the code and / or links in your response; The material I was looking for talks about wireframes, jQuery, JSON, and whatever the flavor of the month’s abbreviation is, I don’t need anything interesting, just the usual standard way to do this, I don’t care if it is not optimized, etc .: - |

+2
source share
2 answers

As noted in GenericTypeTea , when using .NET AJAX with UpdatePanel, there are back-side copies on the server side. The only difference is that the whole page is not loaded. All server-side code runs as usual, but information is transferred between the server and the page differently using AJAX technology.

javascript , , .NET PageMethods. "" AJAX .NET, UpdatePanel.

+1

Source: https://habr.com/ru/post/1745880/


All Articles