Insertion of a calendar

ajax , Nice, France
  • 12 years ago

    Hello all,


    I am trying to insert calendars for the start date and end date for my web page.

    This is my piece of code where I used the "Calendar Extender" of the AJAX control toolkit..The calendars being displayed are very crude and i am not able to access different months.Only the current month is being displayed.I could not figure out where the problem is.Can someone help me out?


    <asp:FormView ID="fvProjectDetails" runat="server"
        DataKeyNames="ProjectID" DataSourceID="esProjectDetailsDataSource"
         <span class="textHeader">Step 1. Edit Project Information<br /></span>              
      Title: <br />
    <asp:TextBox ID="txtTitle" runat="server" value=" " Text='<%# Bind("Title") %>' BorderStyle="Solid" BorderWidth="1px" Width="75%" />
                <br />
    Start Date: <br />
    <asp:TextBox ID="txtStartDateI" runat="server" value=""Text='<%# Bind("StartDate") %>' BorderStyle="Solid" BorderWidth="1px" Width="50%" />

    <asp:ImageButton runat="Server" ID="ImageButton1" ImageUrl="ico_calendar.gif" AlternateText="Click here to display calendar"/>
    <ajaxToolkit:CalendarExtender ID="calendarStartDate1" EnabledOnClient="true"  runat="server" TargetControlID="txtStartDateI" PopupButtonID="ImageButton1" format="MM/dd/yyyy">
      <br />
     End Date: <br />
    <asp:TextBox ID="txtEndDateI" runat="server" Text='<%# Bind("EndDate") %>' BorderStyle="Solid" BorderWidth="1px"  Width="50%" />     
     <asp:ImageButton runat="Server" ID="ImageButton2" ImageUrl="ico_calendar.gif" AlternateText="Click here to display calendar"/>
     <ajaxToolkit:CalendarExtender ID="calendarEndDate1" EnabledOnClient="true"  runat="server" TargetControlID="txtEndDateI" PopupButtonID="ImageButton2" format="MM/dd/yyyy">
     <br />




  • 12 years ago


    What version of the AJAX toolkit are you using?

    I have used calendars with AJAX and never experienced any problems at all.


Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only two kinds of languages: the ones people complain about and the ones nobody uses” - Bjarne Stroustrup