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

  • Thread starter Thread starter msnews.microsoft.com
  • Start date Start date
M

msnews.microsoft.com

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
 
Thanks a lot Karl. This is useful.


Karl Seguin said:
No you don't always have to.

Yes you can use CreateChildControls

Yes there are many examples which can be found via a google search for
CreateChildControls the most obvious being the documentation for
CreateChildControls:
http://msdn.microsoft.com/library/d...webuicontrolclasscreatechildcontrolstopic.asp

http://www.google.com/search?hl=en&lr=&q=CreateChildControls+custom+server+control&btnG=Search

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top