ASP.NET Show - Knowledge Base

« Back to Knowledge Base list

Render the content inside an HtmlTextWriter

Q:

I get an exception when trying to render the control content inside an HtmlTextWriter. Is there a way I could solve this problem? 

A:

In this case you need to set the Page property of your control to the current page object.
Show1.Page = this.Page;
where Show1 is your show control object.

"Thank you very much for your help! Excellent support!"

Todd Newell
Newell IT Services