Tuesday, June 3, 2008

Ajax .Net III : CalendarExtender Control

Ajax .Net Extender Controls are those controls that extend an Asp .Net Control by the way giving rich Ajax functionality.

Calendar Control extends Asp .Net so that the TextBox can be used for selecting date.
























Start A new website in Visual Studio 2008 or Ajax Enabled WebSite in Visual Studio 2005.
In the case of Visual Studio 2005 the Script Manager will available by default.
In Visual Studio 2008 you have to add a Script Manager.
Add a TextBox which you want to add Calendar support. Add CalendarExtender to the form.




















Set TargetControlId of CalendarExtender to TextBox1. Now when you run the application you will see a textbox as shown in the figure above.

It is that easy to enable date selection functionality to an textbox using CalendarExtender control.

Related Blog

Ajax .Net I : Extension Controls in Visual Studio 2008

Ajax .Net II : Setting up Ajax Control Toolkit controls

Ajax .Net III : CalendarExtender Control

Ajax .Net IV : TextBoxWaterMarkExtender

Ajax .Net VI : ConfirmButtonExtender

6 comments:

  1. hai sir

    where from the calender extender we will get?

    madhu

    ReplyDelete
  2. hai sir

    where from the calender extender we will get?

    madhu

    ReplyDelete
  3. For that you have to download Ajax Control Tool Kit. Inside that you will finad a Sample WebSite. Create a tab in Visual studio for Ajax Control Tookit, Right click, add control navigate to bin folder of Sample web site and you fill find AjaxControlToolkit.dll. Select it and you will get all these contols.
    Shalvin

    ReplyDelete
  4. sir
    i am using ivsual studio 2003.how can i add a date picker coz it does not provide..please help me.thanking you in advance

    ReplyDelete
  5. Ajax .Net will work only with Asp .net 2.0 and above.
    You can freely download Visual web Developer 2008 Express Edition from http://www.microsoft.com/express/vwd/

    ReplyDelete
  6. hello,

    this is the best blog for ajax controls
    plz keep up da good work

    ReplyDelete