How do ASPX pages turn into System.Web.UI.Page?

ASP.NET ( .aspx) pages have a declaration at the <%@ Page %>top that includes the attribute Inherits="". ASPX pages inherit from System.Web.UI.Pagedeclarative-ly.

My question is: what code actually converts the page aspxto an object of type System.Web.UI.Pageclass? Where does this happen on the life cycle and which class is responsible for it?

+3
source share
1 answer

This does not actually happen during the page life cycle. By the time the page object is called as a handler for the request, the .aspx parameter has already been parsed and the code has been compiled into base classes.

, . " -", " " ASP.Net, , , .

- , .

, , PageParser. , ASP.Net GetCompiledPageInstance, , .

HttpApplication " " , , , http . , - , .

+1

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


All Articles