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
170
webtab and embedded usercontrol
posted

Hello,

I set webtab.tab.contentpaneurl as a embedded usercontrol"s url (this is virtual url, normally i can load my usercontrol with that url). But when I try get webtab.tab.contentpane.usercontrol, it always return null.

 

Is there any method to do this?

  • 24497
    posted

    Hi,

    If application calls ContentPane.UserControl and UserControlUrl is set, then reference to Control should be returned. Implementation of that method includes request to UltraWebTab to create all child controls including templates. If it fails and null is returned, then there is probably exception due to timing or other issue.

    In order for that property to work all should be created in the aspx. If tabs and their contents are created dynamically, then at the time of call to that property the ContentPane should belong to Tab, tab should belong to Tabs, Tabs should belong to UltraWebTab and UltraWebTab should be added to Controls of form.