469,887 Members | 1,293 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,887 developers. It's quick & easy.

extending and editing user control

i am working on some sort of template for my site and i am extending
UserControl.

inheritance goes like this
UserControl
|
BaseUserControl (contains common functions for all user controls, no
ascx, just cs)
|
MyUserControl (visulay designed concrete control to be put in
placeholder in main page)
in BaseUserControl i'd like to have a property of type Panel which
would contain widgets, but Panel is supposed to be designed visualy in
the MyUserControl. so if i add Panel to MyUserControl in designer and
give it the same name as it has in BaseUserControl, designer adds
reference to code behind to that panel which then hides inherited
reference from BaseUserControl. If i delete that reference from
MyUserControl, everything is fine, page opens correctly, but as soon
as i switch to designer it adds refernce to code behind again.

is there any workaround this? when i put user controls on the page i
must manualy add reference to code behind, that is sort of behaviour i
want for this case.

thanks everybody
Nov 18 '05 #1
0 871

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Ian Richardson | last post: by
reply views Thread by Frnak McKenney | last post: by
3 posts views Thread by cpnet | last post: by
reply views Thread by =?Utf-8?B?QnVsbGluZXM=?= | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.