all groups > asp.net building controls > april 2005 >
You're in the

asp.net building controls

group:

Do we always have to use the HtmlTextWriter to create the control?


Do we always have to use the HtmlTextWriter to create the control? msnews.microsoft.com
4/27/2005 2:22:07 PM
asp.net building controls: Hello Everybody,

Do we always have to use the HtmlTextWriter to create the control?

Can we not use the overriden CreateChildControl to create the control?

Is there any samples available?

Thanks
Anand

Re: Do we always have to use the HtmlTextWriter to create the control? mortb
4/28/2005 12:00:00 AM
Yes you can!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuicontrolclasscreatechildcontrolstopic.asp

cheers,
mortb

[quoted text, click to view]

Re: Do we always have to use the HtmlTextWriter to create the control? MasterGaurav
5/4/2005 11:29:35 PM
CreateChildControls is the preferred way.

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------
AddThis Social Bookmark Button