Groups | Blog | Home
all groups > asp.net building controls > march 2006 >

asp.net building controls : PropertyExtender can affect render??


Arthur Dent
3/31/2006 10:35:53 PM
I was thinking for learning to write a propertyextender class which would
add some extra attributes to a controls on a form before rendering.
Can i actually do this though? Would a property extender be able to somehow
hook into the rendering life of the form and to add or alter the properties
of a control before it renders?

Thanks in advance,
- Arthur Dent.

Teemu Keiski
4/1/2006 12:00:00 AM
Hi,

if you are working with ASP.NET 2.0, it already has adaptive control
behavior where control or page can (or better saying will) have associated
Adapter object (ControlAdapter base type), which is capable to access the
control in various stages of control lifecycle as well as modify the
rendering of the control

Architectural Overview of Adaptive Control Behavior
http://msdn2.microsoft.com/en-US/library/67276kc5(VS.80).aspx

ControlAdapter Class
http://msdn2.microsoft.com/en-us/library/system.web.ui.adapters.controladapter(VS.80).aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke



[quoted text, click to view]

Arthur Dent
4/2/2006 11:04:03 PM
Hmm, sounds interesting.... ill have to look into that.

Thanks!


[quoted text, click to view]

AddThis Social Bookmark Button