Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / October 2003

Tip: Looking for answers? Try searching our database.

Control Builders

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
J.Marsch - 01 Oct 2003 23:16 GMT
I read a little bit about control builders, but I don't exactly understand
them.

In what case would I want to use a builder as opposed to controlling how I
render a control inside of the render method?
Jacob Yang [MSFT] - 02 Oct 2003 03:10 GMT
Hi Jeremy

A control builder is a class that governs how a server control is parsed
when it is used declaratively on an ASP.NET page.

Based on my research and experience, I would like to share the following
information with you.

Control Builder Overview
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconwebformscontrolbuilderoverview.asp

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

Custom Control Builder Sample
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconcreatingcustomcontrolbuilder.asp

Does it answer your question? If I have misunderstood your concern, please
feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ?C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
J.Marsch - 02 Oct 2003 15:59 GMT
Jacob:

Thank you for the links, they are very informative.  I am still have one
question, though:  In what circumstances would I want to choose to use a
control builder, rather than just overriding a control's Render() method?
Said another way, my question is now "Why?", rather than "How?".

-- Jeremy

> Hi Jeremy
>
[quoted text clipped - 5 lines]
>
> Control Builder Overview

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
> l/cpconwebformscontrolbuilderoverview.asp
>
> ControlBuilder Class

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
> frlrfSystemWebUIControlBuilderClassTopic.asp
>
> Custom Control Builder Sample

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
> l/cpconcreatingcustomcontrolbuilder.asp
>
[quoted text clipped - 7 lines]
> Get Secure! ?C www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
Teemu Keiski - 03 Oct 2003 22:33 GMT
Hi,

overriding Render does not correlate any way with using control builders.
Control builders are used when control instances are created from markup
(aspx files parsed) (control builder parses content that exists between tags
of server control) i.e when aspx page is compiled.

Rendering is a way to provide the markup control produces for the browser as
a result of going through a web request. It is not tied to parsing and
compiling a control ( or a page).

Signature

Teemu Keiski
MCP, ASP.NET MVP
AspInsiders Member, www.aspinsiders.com
ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com

> Jacob:
>
[quoted text clipped - 14 lines]
> >
> > Control Builder Overview

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
> > l/cpconwebformscontrolbuilderoverview.asp
> >
> > ControlBuilder Class

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
> > frlrfSystemWebUIControlBuilderClassTopic.asp
> >
> > Custom Control Builder Sample

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
> > l/cpconcreatingcustomcontrolbuilder.asp
> >
[quoted text clipped - 7 lines]
> > Get Secure! ?C www.microsoft.com/security
> > This posting is provided "as is" with no warranties and confers no rights.
Jacob Yang [MSFT] - 04 Oct 2003 08:06 GMT
Hi Jeremy,

Firstly, I want to thank Teemu's great help in this issue.

In addition, with the ControlBuilder class, we can support our custom tag,
for example <custom: MyCellVB??>.

With Render function, we cannot implement this function.

I hope it helps.

Jacob Yang
Best regards,
Microsoft Online Partner Support
Get Secure! ?C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.