asp.netajaxasp.net-ajaxajaxcontroltoolkit

Ajax calendar is not popping up


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

<div>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
              <asp:ImageButton ID="imgCal" runat="server" ImageUrl="~/Images/calender.png"/>
                <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox2" PopupButtonID="imgCal"  >
                </asp:CalendarExtender>
</div>
</form>

the same code works on different machine, but mot in mines, any code for this is appreciated.. thanks in advance for any suggestion..


Solution

  • Your code works fine in my machine. Just remove ajax control dll and add latest ajaxcontrol toolkit to your project.