473,472 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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
Nov 19 '05 #1
2 1151
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/de...trolstopic.asp

http://www.google.com/search?hl=en&l...ol&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!)
"msnews.microsoft.com" <ag*****@nobel-systems.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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

Nov 19 '05 #2
Thanks a lot Karl. This is useful.
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:un**************@TK2MSFTNGP14.phx.gbl...
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/de...trolstopic.asp

http://www.google.com/search?hl=en&l...ol&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!)
"msnews.microsoft.com" <ag*****@nobel-systems.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Blaz Ziherl | last post by:
Hi, I am developing an application in VisualBasic .NET and got the following error: "An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll ...
2
by: Gustaf Liljegren | last post by:
I need to export an HTML file, conforming to HTML 4.01 Strict in UTF-8. I have written code for this in XmlTextWriter. Unfortunately, there seem to be no way to remove the XML declaration. The...
1
by: Mike | last post by:
I write many custom controls and think that the HtmlTextWriter would benefit from a method such as: writer.Write("<td>{0}<td>", new HtmlTextWriterCallback(this.WriteCell)) void...
3
by: Lee Chapman | last post by:
Hi, I want my ASP.NET web application to use a custom HtmlTextWriter. i.e. I want the object that the Framework passes to System.Web.UI.Control.Render() to be my own object, MyHtmlTextWriter,...
2
by: Larry Van | last post by:
I have been beating my head against a wall for two days now. I have developed a treeview control that reads in an xml file which holds the information for building the tree. The nodes are...
4
by: James Page | last post by:
I can't seem to get HtmlTextWriter / renderControl to work for sending a control (html) in an e-mail messsage (VB.NET). Keeps telling me that control needs to be in a form tag with runat server...
0
by: John Walker | last post by:
Hi, I have an asp.net application which binds a dataview to a datagrid, which then renders control to an HtmlTextWriter and then by doing a "response.write" my datagrid is successfully displayed...
0
by: dihola | last post by:
Hi all, A component I have renders itself (essentially an HTML table) using an HtmlTextWriter object to create some HTML code. This component is part of an aspx page. I need the component to also...
1
by: Nathan Sokalski | last post by:
I am using the System.Web.UI.HtmlTextWriter, and would like to create tags that are self-closing (such as <tagname />). The RenderBeginTag method does not offer the option of making a self-closing...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.