[asp.net] Popup Tester Web Control

This is a great idea - an ASP.NET server control that only shows if popups are blocked. Use it to show a warning message, info on how to disable popup blocking for your site, or the information you would have shown in the popup if it was allowed.

Now that all the browsers are including popup blockers, this kind of thing should be required in pages that still use popups.

[...] The PopupTester control is derived from Panel, which means that it is a container control to which you can simply add whatever other controls you want to display if a popup blocker is found.

Add an instance to your aspx page with <mbw:PopupTester id="popupTester" runat="server">Popups are being blocked</mbw:PopupTester>

Again, you are free to place whatever content you like inside the PopupTester control. The control will render with a style of display:none, unless a popup blocker is found. If one is found, it renders with display:block. This control should work with Netscape, Internet Explorer and FireFox.

If you're using popups in an ASP.NET application, you owe it to your users to give this control a shot. There is no cost, so what do you have to lose?

If you are using this, Id love to hear your thoughts about it...

Source: Matt Berther - Popup Tester Web Control

powered by IMHO 1.2


  • The thing is, there are so many different combinations of blockers and ad serving strategies. I noticed that one of my ad reps (FastClick or Burst Media, not sure which one) managed to beat the blocker in Firefox. The one in IE was beat the week it came out.

  • Jon,

    Thanks for the link... I did want to point out that the download links are goofed up and are pointing to your site, rather than mine (probably because I used a relative link, rather than absolute). :)

  • Oops. I just removed the download links so you can track hits to your site or update them later. Thanks for pointing that out. Great idea!

  • It was interesting to learn that 57 prceent of adults think about taking steps to keep their work and personal profiles private, but 49% of adults do not use privacy settings on social networking sites. Why is it so important to manage your privacy online? Because mistakes happen 17% of people have inadvertently shared information online that was intended to remain private. Most commonly shared are details about one’s personal life (56%) and personal photos (38%). Check out our recent post to learn How to Change Your Facebook Privacy Settings.

Comments have been disabled for this content.