Placing ModalPopupExtender in a Permanent Location
I have a ModalPopupExtenders series that I use to implement popup dialogs in an ASP.NET 2.0 page.
When they do pop up, it's fairly straightforward to indicate where they appear using the constructor using the X and Y coordinates, but I'm not sure how to handle window resizing, which changes where they should be in cartesian space. I need them to display relative to some other elements on the page.
I tried to hook into the onresize javascript function in IE, but that is broken and fires whenever the div is resized (problematic, indeed, given that I have a lot of CollapsiblePanelExtenders in the UI.
Has anyone ever done this and had any suggestions how can I get this to work?
Edit: This code doesn't help complete the resize event ... http://blog.stchur.com/2006/09/06/the-ie-resize-bug-revisited/
a source to share
I figured out how to do it.
I am using onClickClick to display a modal popup after figuring out where to put them by getting the x + y coordinates from a known control from the DOM. On resizing (from http://blog.stchur.com/2006/09/06/the-ie-resize-bug-revisited/ ) I decided to just hide the popups
a source to share