UserControl not executing when embedded within a ServerControl

G

goosemanjack

This is my problem:

I have a custom border implemented as a servercontrol. Itexposes a property for adding design-time elements which is apanel internally:

[ParseChildren(true)]
[PersistChildren(false)]
public class BorderTable : System.Web.UI.WebControls.WebControl
{

...
[PersistenceMode(PersistenceMode.InnerProperty)]
public Panel TableContents
{
get { return contents; }
}
...
}

In some cases controls will not execute while inside thiscontrol. In other cases they will. All built-in .net controlswork fine. The servercontrol can nest within itself fine.

A custom 3rd party server control won't execute within it. Now ausercontrol won't execute within it (render is OK, but no codeis executed). The border within the usercontrol is fine, butnesting the usercontrol on a page inside another servercontrolcauses failure.

Any ideas appreciated.



User submitted from AEWNET (http://www.aewnet.com/)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top