have decided that I would seek some additional guidance from some experts
out there.
I am dynamically creating tabs based on entries in a database. The content
of the tabs will be the same, the data will change based on the tab.
Therefore, I need to create a template that will display my data for each
tab. I have thought of 2 ways to go about this.
1. Use an additional ASPX page and an iframe to display the tab content. I
have not gotten this work successfully quite yet, not sure what I am doing
wrong as I have used iframes successfully in the past.
function clientActiveTabChanged(sender, args)
{
var activeTab = sender.get_activeTab();
var activeTabId = activeTab.get_element().id;
// Get the CabinetID from the HTML Tab ID
var idIndex = activeTabId.lastIndexOf('_tp')
cabinetId = activeTabId.substr(idIndex, activeTabId.length -
idIndex);
cabinetId = cabinetId.replace('_tp', '');
// Update the frame
ifUpdate.src = 'Cabinet.aspx?CabinetID=' + cabinetId;
}
2. Create the content server side in vb code. Of course this is rather
cumbersome for designing the content.
Any advice would be well received!
Seth
Hi Seth,
My understanding of your issue is that you want to Update(or load) when click on the Tabs. So the data will be changed based on the Tabs. If I have misunderstood, please feel free to let me know.
I think the easiest way for your situation is using UpdatePanels. When user click on different tab, the UpdatePanel inside the tab will be automatically refreshed(loading the data that you expected) by send back a asynchronous post back. To do this , you can do __doPostBack('UpdatePanel.ClientID','') or click a hidden Button inside the UpdatePanel. Good luck! ![]()
I hope this help.
Best regards,
Jonathan
No comments:
Post a Comment