Hi.
Try exchanging Label1.RenderControl(htmlTW) with Page.RenderControl(htmlTW).
This will give you the entire page including all controls.
Or, you can put the code inside a <div> tag like this:
<div id="divPanel" runat="server">
<your code>
</div>
And then use divPanel.RenderControl(htmlTW).
Reputation Points: 87
Solved Threads: 128
Practically a Master Poster
Offline 652 posts
since Jun 2006