I have a page where I set the selected Index to the tab that the user passes in via a query string.
I am also using Load On Demand.
The problem is the tab contents do not load when the page loads? It will only load the contents of the tab that I have listed as the initial tab in the aspx page?
How do I dynamically set the initial PageIndex on page load and have it load the contents of that tab when the page renders?
I am pressed for time on this so if you have an answer, please respond ASAP. Thanks.
Hello RBonser,
Let us know if you need further assistance.
Is this issue resolved? I am currently using version 10.3.20103.2105 and this is the behavior I'm seeing, I'm wondering if it's related. I have a WebTab control and I'm using EnableLoadOnDemand = true and EnableLoadOnDemandViewState = false so there is one tab loaded at all times. I have Save and Cancel buttons on the page. When the user clicks "Cancel", basically I want to reset the data from the database and reload the current tab's data. To do so I am using a Server.Transfer but the problem is it automatically takes me back to the first tab (SelectedIndex = 0). I've tried in the Init, Load, etc events to set SelectedIndex to be the tab I was previously on but then I get an exception "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).".. I've tried not using the Server.Transfer but I just found it easier with some of the tabs containing WebDataGrids to have the page reload but then it takes me back to the first tab.
Is this a related issue? Do you know how I could achieve what I'm trying to do?
Thanks