Lions Den

The Code and Times of Hanan Schwartzberg

About Hanan | Hanan's CV | Contact Hanan

September 10, 2009

CalendarExtender Plus 1.0.2.0

Click Here to download the latest version of CalendarExtender Plus and documentation.

The CalendarExtender Plus is a modification of the calendar extender that ships as part of the Ajax Control Toolkit. There are two main features added to the control. First, you can limit the selectable dates to a specified date range. Second, there is now the option to show an alternate header. The new header includes two DropDown Lists, one to select the month and one to select the year.

(more…)

June 16, 2009

Introducing CalendarExtender Plus

Maximum Date - May 15th, 2009
Click Here to download the latest version of CalendarExtender Plus and documentation.

The CalendarExtender Plus is a modification of the calendar extender that ships as part of the Ajax Control Toolkit. There are two main features added to the control. First, you can limit the selectable dates to a specified date range. Second, there is now the option to show an alternate header. The new header includes two DropDown Lists, one to select the month and one to select the year.

The available dates can be limited using the MaxDate and MinDate properties.

<cc1:CalendarExtenderPlus runat="server" ID="cepExample" 
    TargetControlID="txtExample" 
    MaximumDate="01/01/2009" MinimumDate="5/15/2009 />

Setting the ShowDdlHeader to true will show the heading with dropDownLists to select the month and year.

<cc1:CalendarExtenderPlus runat="server" ID="cepHeaderExample" 
    TargetControlID="txtExample" ShowDdlHeader="true" />

DropDownList

The Calendar Extender Plus has a few other enhancements, including the ability to show or hide the arrows in the heading to move back and forth a month, and a property to show or hide today’s date at the bottom of the calendar.

Since the CalendarExtender Plus is a modification of the standard extender it has all the properties and functionality of the original. It can be skinned using the normal css, and automatically fills the textBox with no need for additional javascript.

The CalendarExtender Plus is free to download, use, and distribute with your project. Any feedback is greatly appreciated!

May 14, 2009

Maintaining Dynamically Added Controls

Filed under: ASP.NET,C# — Tags: , , , , , , — Hanan Schwartzberg @ 5:45 am

Two Questions

  1. How can I keep a dynamically added control from disappearing on postBack?
  2. When in the life cycle of the page should I do this?
Click Here to download this solution

(more…)

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

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.