getting HtmlTextWriter of a control

Posted by lissa on Stack Overflow See other posts from Stack Overflow or by lissa
Published on 2010-06-01T06:22:48Z Indexed on 2010/06/01 6:33 UTC
Read the original article Hit count: 186

Filed under:
|
|

is it possible to get HtmlTextWriter of a control?
if no, then how can i call the RenderEndTag of a control in code behind?

i am facing a problem in my application. i extended the listbox user control and override its RenderEndTag event.

if i used the new listbox (Mylistbox) normally inside a WebPage, everything works fine. but when i put Mylistbox in a Webusercontrol and include the Webusercontrol in a WebPage, the RenderEndTag of the control is not called for some reason.

so i guessed that i should explicitly call 'RenderEndTag' of the control. to do so i need to pass an HtmlTextWriter...

© Stack Overflow or respective owner

Related posts about c#

Related posts about vb