How to change ASP.NET HTML source page to PreRender?

I want to access the raw HTML that ASP.NET System.Web.UI.Page is going to do.

How can i do this? Is there a property or method like System.Web.UI.Page.HTML or something like that.

I know that I could iterate over the list of controls and access all Literal controls, etc., but I was wondering if there is a direct property or method that can return me raw html that I can change right before page rendering.

+3
source share
2 answers

First of all, the PreRenderpage wasn’t yet Render, so there will be no HTML.

-, HttpResponse.Filter.

+4

HTTPModules, HTTP-. , . , , ( , ).

+1

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


All Articles