Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Control Builders

Reply
Thread Tools

Control Builders

 
 
J.Marsch
Guest
Posts: n/a
 
      10-01-2003
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?


 
Reply With Quote
 
 
 
 
Jacob Yang [MSFT]
Guest
Posts: n/a
 
      10-02-2003
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/de...us/cpguide/htm
l/cpconwebformscontrolbuilderoverview.asp

ControlBuilder Class
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemWebUIControlBuilderClassTopic.asp

Custom Control Builder Sample
http://msdn.microsoft.com/library/de...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.

 
Reply With Quote
 
 
 
 
J.Marsch
Guest
Posts: n/a
 
      10-02-2003
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


"Jacob Yang [MSFT]" <> wrote in message
news:Wai%...
> 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/de...us/cpguide/htm
> l/cpconwebformscontrolbuilderoverview.asp
>
> ControlBuilder Class
>

http://msdn.microsoft.com/library/de...us/cpref/html/
> frlrfSystemWebUIControlBuilderClassTopic.asp
>
> Custom Control Builder Sample
>

http://msdn.microsoft.com/library/de...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.
>



 
Reply With Quote
 
Teemu Keiski
Guest
Posts: n/a
 
      10-03-2003
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).

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


"J.Marsch" <> wrote in message
news:%...
> 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
>
>
> "Jacob Yang [MSFT]" <> wrote in message
> news:Wai%...
> > 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/de...us/cpguide/htm
> > l/cpconwebformscontrolbuilderoverview.asp
> >
> > ControlBuilder Class
> >

>

http://msdn.microsoft.com/library/de...us/cpref/html/
> > frlrfSystemWebUIControlBuilderClassTopic.asp
> >
> > Custom Control Builder Sample
> >

>

http://msdn.microsoft.com/library/de...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.
> >

>
>



 
Reply With Quote
 
Jacob Yang [MSFT]
Guest
Posts: n/a
 
      10-04-2003
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
uk, netbased, builders? The Crow Computer Information 0 02-19-2004 08:52 AM
White Box builders V W Wall Computer Information 0 12-19-2003 05:35 PM
The Page Builders DaMoe HTML 30 10-05-2003 03:53 PM
Join THE PAGE BUILDERS, a MSN group for HTML tips,etc... DaMoe HTML 0 08-19-2003 02:28 AM
House Builders judith Computer Support 16 08-10-2003 06:45 AM



Advertisments