Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
Dynamically adding Web Part Zones to content template of Ultrawebtab
posted

I am using version NetAdvantage version 8.2.20082.2010 for asp.net in version 3.5 of the CLR. I have a page that contains an instance of the Ultrawebtab control and am attempting to dynamically create tabs that contain web part zones. As required, the web part zone control instances are being created during the OnInit() event of the page lifecycle and immediatly added to the content template of a newly created Tab instance. However, an exception is being thrown during the OnLoad() event indicating that the zones must be created on or before the OnInit() event of the page. If I add the zones to another container on the page, all works fine. I suspect that something within the tab content control is causing the zone control "creation" to be defered until the Page Load event, but I certainly can't verify that for sure. Can anyone please shed some light on what is happening here and possibly point me toward a solution for dynamically creating the web part zones within a tab content template (short of not using the Ultrawebtab)?

Thanks,

js

Parents
No Data
Reply
  • 230
    posted

    Let me clarify the part about the zone creation being deferred. What I mean is, the zone controls are not being added to the page until the OnLoad() event. I assume this is being controlled by the tab content. I guess what I am asking is:

    Is there any way to force the tab content to add its child controls to the page during the OnInit() event?

     Thanks

    js

Children