K
K
Kealkat2019-09-05 17:12:11
ASP.NET
Kealkat, 2019-09-05 17:12:11

How to generate a web page without recreating?

Good afternoon.
Please explain - in ASP.NET WebForms, each page on the postback is recreated anew (a new page class object is created and a new page is returned to the client), which must always be kept in mind. Are there other implementations, or is the same thing going on in all approaches? Are there alternatives to this approach?
PS: About Session and ViewState in the know.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#, 2019-09-05
@mindtester

not my profile, but as far as I remember, webforms are tightly tied to the ViewState, and it seems like just a page update. although you can of course use both ajax and frame. but in any case, you will have to gnaw at the granite of science
. MVS.NET is not bound by such restrictions as ViewState, nevertheless, the solutions for partial updating of fragments are still the same - ajax, frame, and of course the tools of modern frameworks such as react, angular, vue, and others like that .. well, any handwritten js code too

E
Evident, 2019-09-05
@Evident

MVC works exactly the same. As in principle, everything. Unless, pages can be cached.
I suspect that you need to store something in RAM. Dig towards the server cache (managed) and application variables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question