UserControl not executing when embedded within a ServerControl

Discussion in 'ASP .Net Web Controls' started by goosemanjack, Feb 24, 2005.

  1. goosemanjack

    goosemanjack Guest

    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/)
    goosemanjack, Feb 24, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon
    Replies:
    1
    Views:
    348
    Ken Cox [Microsoft MVP]
    Mar 3, 2004
  2. Lars Netzel

    Add icon to my ServerControl?

    Lars Netzel, Dec 31, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    331
    John Saunders
    Dec 31, 2004
  3. Beffmans
    Replies:
    6
    Views:
    1,720
    Beffmans
    Aug 19, 2005
  4. CalvinKash

    Javascript and ServerControl

    CalvinKash, Apr 30, 2005, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    111
    Steve C. Orr [MVP, MCSD]
    Apr 30, 2005
  5. Patrick F

    web.config servercontrol binding problem

    Patrick F, Feb 25, 2007, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    144
    Patrick F
    Feb 25, 2007
Loading...

Share This Page