Lions Den

The Code and Times of Hanan Schwartzberg

About Hanan | Hanan's CV | Contact Hanan

February 22, 2009

A container user control that can be used with the ModalPopupExtender

Filed under: ASP.NET — Tags: , , , , — Hanan Schwartzberg @ 4:56 pm

I am currently working on a project that has a good number of modalPopups across several pages. Each one has an OK and a Cancel button and either some text or other controls. To make it easier to maintain all these popups, I set out to build a user control that could act as a panel. Then for each popup I could simply add the controls that are specific to that popup. This turned out to be more difficult than I had anticipated. After some time and searching I came up with the following solution. (more…)

January 28, 2009

ModalPopup Flicker When Exiting the Page

Issue

When the user causes a complete postback all of the panels associated with ModalPopupExtenders flicker and become visible for a moment before the page disappears as the browser loads the next page. NOTE: This is occurring while exiting the page, not when the page loads and could not be replicated on other pages.

What did not work

A quick Google search yielded this post relating to the flicker occassionaly seen when the page loads:  http://mattberseth.com/blog/2007/08/how_to_stop_the_modalpopup_fli.html

To get around this, I explicitly set the display style to ‘none’ on the popup Panel.  This has solved the problem.

I tried this two ways (not at the same time):

  • I added display:none; to my css class that each panel uses.
  • I added style=”display:none;” the to the panel’s tag (more…)
Home | Site Design | Banner Design | Code Den | Offsite Posts | Downloads | Photography | About Hanan | Hanan's CV | Contact Hanan
Copyright © 2009 Hanan Schwartzberg. All rights reserved.