M
matt
Hi,
I have two very similar pages, whose codebehind I'd like to derive from
the same base class so I can reuse the controller logic.
For (hopeful) clarity I'll try and draw this in ASCII-UML!
PageBase
^ ^
PageA PageB
^ ^
PageA_aspx PageB_aspx
What I find though, is that I can't get access to the control from the
common base type. I guess this is because the controls are created as
fields on the subclass by the code generator. Is there any way to do
this? I'm thinking I may need to use a helper class instead and just
pass it references to all the controls on Page.Init or something...
cheers,
Matt
I have two very similar pages, whose codebehind I'd like to derive from
the same base class so I can reuse the controller logic.
For (hopeful) clarity I'll try and draw this in ASCII-UML!
PageBase
^ ^
PageA PageB
^ ^
PageA_aspx PageB_aspx
What I find though, is that I can't get access to the control from the
common base type. I guess this is because the controls are created as
fields on the subclass by the code generator. Is there any way to do
this? I'm thinking I may need to use a helper class instead and just
pass it references to all the controls on Page.Init or something...
cheers,
Matt