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…)

February 15, 2009

Hide the contents of the page until the entire page has loaded

Filed under: ASP.NET,Client Side — Tags: , , — Hanan Schwartzberg @ 12:14 pm

There are several reasons you may want to keep the controls on the page hidden until the page has loaded. If the user enters data before all the controls are loaded it may cause an error, or you may just not want the user to see the page rendering. The example below shows how to hide the controls from the user and instead display a loading message.

(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.