Don’t Forget RenderControl!. > > Is it…

less than 1 minute read

[_Don't Forget RenderControl!_](http://dotnetguy.techieswithcats.com/archives/001846.shtml)_._ > > _Is it possible to just get the raw HTML that is sent to the browser when a web control is rendered?_ > > _Yes, but only if you subclass the control. The method you need to call is 'Render' and it's protected. Here's a_[_quick sample_](http://radio.weblogs.com/0110109/stories/2002/06/27/gettingTheRawHtmlFromAWebControl.html)_... [_[_Wrinkled Paper_](http://radio.weblogs.com/0110109/)_]_ > > _Ack! No. Just call Control.RenderControl(). :-p No need to sub-class the control just to get its rendered data... If you have Visual Studio.NET installed, you can_[_read all about it here_](ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemWebUIControlClassRenderControlTopic.htm)_._ > > _[_[_The .NET Guy_](http://dotnetguy.techieswithcats.com/)_]_ > >

Thanks Brad. :o)

Updated: