Hi
I have a page with tabs and pageviews and all is OK. All pageviews are rendered dynamically and have userControls added to them.
One of these Pageviews has another Tab based page (UserControl), and if I apply the same dynamic rendering method there, a funny thing happens. All is OK in Firefox, but in IE 8 my pageviews, or better yet, the usercontrol I'm adding to them, show upp all over the place.
The parent page with the tabs is a customer page, and one of the tabs is "customer addresses". When that tab is clicked my pageview with customer shipping,- home,- billing adresses etc. are displayed, one in each tab. In Firefox all is OK but in IE 8 the first with "home address" is ok, but the next Tab has both "home address" and "billing address". And the even more peculiar thing is that my address ageview shows up in my parent page tabs, - almost all of them (except if my first address-tab is selected, then all is ok).
The code I'm using to add the tabs/Pageviews/ and usercontrols looks like this...
Thanks for any help
Axel
I have a page with tabs and pageviews and all is OK. All pageviews are rendered dynamically and have userControls added to them.
One of these Pageviews has another Tab based page (UserControl), and if I apply the same dynamic rendering method there, a funny thing happens. All is OK in Firefox, but in IE 8 my pageviews, or better yet, the usercontrol I'm adding to them, show upp all over the place.
The parent page with the tabs is a customer page, and one of the tabs is "customer addresses". When that tab is clicked my pageview with customer shipping,- home,- billing adresses etc. are displayed, one in each tab. In Firefox all is OK but in IE 8 the first with "home address" is ok, but the next Tab has both "home address" and "billing address". And the even more peculiar thing is that my address ageview shows up in my parent page tabs, - almost all of them (except if my first address-tab is selected, then all is ok).
The code I'm using to add the tabs/Pageviews/ and usercontrols looks like this...
private void PopulateAddressTabs() |
{ |
string tmpTabName = ""; |
AddressMultiPage.PageViews.Clear(); |
if (partyID > 0) |
{ |
var db = new PartyDataContext(); |
var addresses = db.PartyAddressesGet(partyID); |
foreach (var address in addresses) |
{ |
if (address.AddressType != null) |
tmpTabName = (string)GetLocalResourceObject("AddressType" + address.AddressType.id.ToString()); |
else |
tmpTabName = (string)GetLocalResourceObject("AddressType0"); |
AddTab(tmpTabName, "EditAddress" + address.id.ToString(), address.id, false); |
} |
} |
AddTab((string)GetLocalResourceObject("NewAddress"), "NewAddress", -1, true); |
} |
private void AddTab(string tabName, string tabID, int addrID, bool isInsert) |
{ |
RadTab tab = new RadTab(); |
tab.Text = tabName; |
AddressTabStrip.Tabs.Add(tab); |
PartyAddress userControl = (PartyAddress)LoadControl("~/Party/UserControls/PartyAddress.ascx"); |
userControl.AddressID = addrID; |
userControl.IsInsert = isInsert; |
userControl.PartyID = partyID; |
userControl.ID = tabID + "_userControl"; |
RadPageView pageView = new RadPageView(); |
pageView.ID = tabID; |
pageView.Controls.Add(userControl); |
AddressMultiPage.PageViews.Add(pageView); |
} |
Thanks for any help
Axel