Updatepanel within Tabview (error Cannot unregister UpdatePanel with ID)
Hi,
I've created a new section within the Umbraco backend to cope with a specific piece of business functionality. The fact that this can be done in Umbraco is fantastic for a start!
The examples I've seen of adding a new section to umbraco include the code to allow a TabView control to be added to a page within the new section. In an override of OnInit() you then set the Tab page's heading text and assign a Pane to become the Tab page's content.
This all works fine and the page appears correctly. Errors start to happen when you try to include an UpdatePanel within one of the pages of a TabView. I end up with an error:
"Cannot unregister UpdatePanel with ID 'UpdatePanel1' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported. Parameter name: updatePanel"
Removing the TabView set-up from the page corrects this however the page then doesn't confirm to the standard look of an Umbraco backend page.
Other strange things also happen to Gridviews. When trying to update a row of data in a gridview that is in edit mode, the RowUpdating and RowUpdated events never fire. Removing the TabView corrects this.
I'm really looking for another way of setting up the TabView control correctly without causing these problems. Presumably this is happening because the page's structure is effectively being re-built which perhaps the viewstate can't cope with (or something to do with the TabView being set-up in the OnInit method)?
I get a 404 error when trying to download the example from http://www.pixcode.se/download/tabContainerSample.zip. And the reference in the blogpost is not very clear on how to solve it in a elegant way. Is reflection the only way to reregister the updatepanel?
I had this issue today where I had a aspx with a TabView and a usercontrol on it. I would add the usercontrol to it in the codebehind which was causing the issue. The fix was to not place the user control on the aspx but to use LoadControl() in the codebehind to create the usercontrol and to then add it to the tabview.
Updatepanel within Tabview (error Cannot unregister UpdatePanel with ID)
Hi,
I've created a new section within the Umbraco backend to cope with a specific piece of business functionality. The fact that this can be done in Umbraco is fantastic for a start!
The examples I've seen of adding a new section to umbraco include the code to allow a TabView control to be added to a page within the new section. In an override of OnInit() you then set the Tab page's heading text and assign a Pane to become the Tab page's content.
Example here: http://www.nibble.be/?p=71
This all works fine and the page appears correctly. Errors start to happen when you try to include an UpdatePanel within one of the pages of a TabView. I end up with an error:
"Cannot unregister UpdatePanel with ID 'UpdatePanel1' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel"
Removing the TabView set-up from the page corrects this however the page then doesn't confirm to the standard look of an Umbraco backend page.
Other strange things also happen to Gridviews. When trying to update a row of data in a gridview that is in edit mode, the RowUpdating and RowUpdated events never fire. Removing the TabView corrects this.
I'm really looking for another way of setting up the TabView control correctly without causing these problems. Presumably this is happening because the page's structure is effectively being re-built which perhaps the viewstate can't cope with (or something to do with the TabView being set-up in the OnInit method)?
Sorry if I've missed something really obvious!
Thanks,
Neil.
Neil,
Take a look at http://our.umbraco.org/forum/developers/extending-umbraco/3930-Axendo-ultimate-picker?p=1
Regards
Ismail
I have a sample project for this problem.
It' shows tabcontainer and updatepanel working together.
See if it helps you.
http://blogg.pixcode.se/post/Working-with-ajax-tabContainer-and-ajax-updatepanel.aspx
Hi,
I also get this problem.
I have an update panel inside this tab view. What should I do to fix this ?
Thanks for your help.
I get a 404 error when trying to download the example from http://www.pixcode.se/download/tabContainerSample.zip. And the reference in the blogpost is not very clear on how to solve it in a elegant way. Is reflection the only way to reregister the updatepanel?
I had this issue today where I had a aspx with a TabView and a usercontrol on it. I would add the usercontrol to it in the codebehind which was causing the issue. The fix was to not place the user control on the aspx but to use LoadControl() in the codebehind to create the usercontrol and to then add it to the tabview.
Was anyone ever able to resolve this issue? I too am receiving this exact error when I try to include an gridview within an update panel on a tabview.
is working on a reply...