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
990
WebTab PostBackOptions issue
posted

Hello,

I am using Load on Demand in WebTab control (I need to load the tab content only when the user is clicking on a tab).

The PostBackOptions property EnableLoadOnDemand is "true" and I am using aspx pages inside the tabs. (Each tab has the ContentUrl property set to "something.aspx")

The Load on demand works fine when the aspx page inside the tab is in the same directory as the aspx page containing the WebTab control. When the aspx page inside the tab is not in the same directory as the WebTab page, the Webtab is loading already loaded tab.

Is this a WebTab component issue or is something going on with my code?

Here is my WebTab configuration :

 

 

 

 

 

 

 

<ig:WebTab ID="WebTab1" runat="server">

 

 

 

<Tabs>

 

 

 

<ig:ContentTabItem Key="Tab1" runat="server" Text ="Tab1"/>

 

 

 

<ig:ContentTabItem Key="Tab2" runat="server" Text ="Tab2"/>

 

 

 

 

 

 

 

 

<ig:ContentTabItem Key="Tab3" runat="server" Text ="Tab3"/>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

</Tabs>

 

 

 

<PostBackOptions EnableLoadOnDemandUrl="true" EnableAjax="false"/>

 

In page_load,

Tab1.ContentUrl = "Tab1Content.aspx",

Tab2.ContentUrl = "Tab2Content.aspx" and

Tab3.ContentUrl = ResolveClientUrl("~/OtherDirectory/Tab3Content.aspx")

Could you please help me with the above issue?

Thanks

 

 

 

 

 

 

Parents
  • 49378
    posted

    Hi ocornuau,

    Thank you for posting in the community.

    In this scenario you may wish to try and set the ContentURLs of the tabs in another folder without "~/"

    WebTab1.Tabs[2].ContentUrl =

     

     

    "NewDir/Nested.aspx";

    Alternatively you may use absolute paths to resolve the URL:

    WebTab1.Tabs[2].ContentUrl = "/YourProjectName/NewDir/Nested.aspx";

    Please let me know if this helps.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://es.infragistics.com/support

Reply Children