Thanks so much! This has been driving me crazy and for once I found a clear description/explanation/fix that worked instantly. Our backup workaround was to disable debugging :P Hopefully this will be a fix in the next release
Hi, I am still using July CTP. I have a page, in the code, at many places, I use CollapsiblePanelExtender. The page has been running many months. Now I need to add more content to that page; so I added a tabStrip and make the page multiview. There are two views - one view contains my old contents and one view will have new content. Now I introduced a trouble. Whenever the view containing my old code is inactive(the view is invisible), my system crashes by the error below. Anyone know if that is fixed with recent release.
Assertion Failed: could not find an HTML element with ID"wpm_XXXX_XXXXx" for control type "Sys.UI.Control"
Try using control.Style["Visibility"] = "hidden"; instead of using control.Visible = false;
When you set the server side Visible proeprty to false, the contents of the control will not be rendered to the client at all - if you use the style property, the contents will still be rendered (and it will still be able to find the control with that id, as per your error message) but it will be hidden.
Using the div does work but if the user control is a step within a wizard control, it won't render etc the wizard sidebar but only the content within the UpdatePanel. Any idea? Please let me know at martin@invent2b.com
Matthew Cosier is a Principal Consultant at Hazaa, http://www.hazaa.com.au
Matthew also manages an online blog about Software Development and all things Microsoft at http://cosier.wordpress.com
7 comments:
Nice work. I haven't actually run into this issue yet with the July CTP but I'll keep it in mind if I do.
Thanks so much! This has been driving me crazy and for once I found a clear description/explanation/fix that worked instantly. Our backup workaround was to disable debugging :P Hopefully this will be a fix in the next release
Thank you so much!!!! Great explanation!!!!!!!!
Leonel (from argentina)
Hi,
I am still using July CTP. I have a page, in the code, at many places, I use CollapsiblePanelExtender. The page has been running many months.
Now I need to add more content to that page; so I added a tabStrip and make the page multiview. There are two views - one view contains my old contents and one view will have new content. Now I introduced a trouble. Whenever the view containing my old code is inactive(the view is invisible), my system crashes by the error below.
Anyone know if that is fixed with recent release.
Assertion Failed: could not find an HTML element with ID"wpm_XXXX_XXXXx" for control type "Sys.UI.Control"
Try using control.Style["Visibility"] = "hidden"; instead of using control.Visible = false;
When you set the server side Visible proeprty to false, the contents of the control will not be rendered to the client at all - if you use the style property, the contents will still be rendered (and it will still be able to find the control with that id, as per your error message) but it will be hidden.
HTH,
Matthew Cosier
Using the div does work but if the user control is a step within a wizard control, it won't render etc the wizard sidebar but only the content within the UpdatePanel. Any idea? Please let me know at martin@invent2b.com
Thanks,
Martin
But I may be one who does not careEver to have tree bloom or bear.
Leaves and bark may be tree enough.Some giant trees hidh81ke have bloom so small.
Wholesale New Era Hats
Cheap 59fifty Hats
Cheap New Era Hats
New Era Snapback Hats
New Era Fitted Hats
Post a Comment