The correct point in time to read an ASP .NET 1.1 control property in order to change page output

Posted by RossMan on Stack Overflow See other posts from Stack Overflow or by RossMan
Published on 2010-04-23T06:14:57Z Indexed on 2010/04/23 6:23 UTC
Read the original article Hit count: 205

Filed under:
|
|

Using ASP .NET 1.1 with CMS 2002 and C#. Trying to read the contents of a CMS HTML placeholder control into a string reader object so certain logic can be performed and the page output modified before it is displayed:

StringReader srHtml = new StringReader(this.HtmlPlaceholderControl1.Html);      

The problem is that the Html property is empty during Page_Load, I've tried in a PreRender overload as well, but the property is still empty. The HtmlPlaceholder control does render html when the page load has completed. Which event should be handled in order to read the propery of the web control?

© Stack Overflow or respective owner

Related posts about c#

Related posts about asp.net-1.1