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">
<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
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";
WebTab1.Tabs[2].ContentUrl =
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 IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
Hi Petar,
Thanks for answering so soon.
I've already tried your solution but it doesn't work. The tab is still loaded on every click.
Do you have another idea?