How to modify raw HTML of ASP.NET page on PreRender?

Posted by ace on Stack Overflow See other posts from Stack Overflow or by ace
Published on 2010-05-13T20:02:53Z Indexed on 2010/05/13 20:04 UTC
Read the original article Hit count: 201

Filed under:

I want to access the raw HTML code that my ASP.NET System.Web.UI.Page is about to render.

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

I know I could loop through the Controls List of the page and get access to all the Literal Controls etc, but I was wondering if there's a direct property or method that can return me the raw html, which I can modify just before rendering the page.

© Stack Overflow or respective owner

Related posts about ASP.NET