Click here to Skip to main content
14,865,447 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Code is looking right.. but when i run the application.. my textbox is not showing the calender exterder??
i am using ajax control toolkit..
what is the problem.. i get nothing... no error not a calender extender
here is the code.

ASP.NET
Date <asp:TextBox ID="txtdate" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        
        <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtdate">
Posted
Updated 16-Jan-19 4:41am
v3
Comments
[no name] 4-Dec-11 4:04am
   
EDIT: added "b" tag

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


Add the above line within page directive. Then apply the following lines:
XML
<asp:ScriptManager id="ScriptManager" runat="server">
   </asp:ScriptManager>

XML
<asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
   <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate"> </cc1:CalendarExtender>


For further information visit the following link:
http://wiki.asp.net/page.aspx/417/calendar-extender/[^]
http://www.dotnetcurry.com/ShowArticle.aspx?ID=149[^]
http://www.ezineasp.net/post/AJAX-Control-Toolkit-Calendar-Extender.aspx[^]
   
Comments
Rubaba 3-Dec-11 11:41am
   
i applied its working for me.5!
Monjurul Habib 5-Dec-11 16:20pm
   
thank you
[no name] 4-Dec-11 4:07am
   
my 5!
Monjurul Habib 4-Dec-11 6:09am
   
thank you
Uday P.Singh 4-Dec-11 5:14am
   
Correct 5+
Monjurul Habib 4-Dec-11 6:09am
   
thank you
Member 10728261 6-Apr-14 12:08pm
   
still not working
NekoNao 3-Dec-15 4:07am
   
mine also
XML
Date <asp:TextBox ID="txtdate" runat="server">
        

        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtdate">

if u add assembly and then access ajax controls
C#
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900