Click here to Skip to main content
15,911,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I am using CalendarExtender in my project.But It is not working. I have added latest AjaxToolKit.dll.

there is a ToolkitScriptManager in master page.

<cc1:ToolkitScriptManager ID="ScriptManager" runat="server"></cc1:ToolkitScriptManager>


and dll registerd in web.config like this:

<add assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagPrefix="cc1" />


Here is code spinet:

&nbsp;<asp:TextBox ID="txtdtofRegi" runat="server" CssClass="input_text"></asp:TextBox>
                                                            <cc1:CalendarExtender ID="CalendarExtender1" EnabledOnClient="true" runat="server"
                                                                TargetControlID="txtdtofRegi" PopupButtonID="txtdtofRegi" Format="MMMM d, yyyy">
                                                            </cc1:CalendarExtender>



also I downloaded sample project of controltoolkit. but its controls also not working.
when I clicked for calendarExtender in textbox it not show calendar.

I have tried in Mozilla Firefox 5.0 and IE 6

I am not getting problem. please and please help me..

Thanks..
Posted

1 solution

Do the following :

1-Add the Ajax dll.

2-add this in your page :

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

3- Add the calender extender like this one :

XML
<cc1:CalendarExtender ID="txt_NewsDate_CalendarExtender" runat="server" TargetControlID="txt_NewsDate">
                   </cc1:CalendarExtender>

4-Dont Forget to add this :

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


Good Luck.
 
Share this answer
 
v2
Comments
Maddy_1008 6-Jul-11 7:31am    
Thanks for Reply mhamad zarif

I tried this. But still not working..
mhamad zarif 6-Jul-11 8:50am    
I wish to see your code since this is working with me
mhamad zarif 6-Jul-11 8:51am    
Make sure that the script manager is added before anything else is added.
Maddy_1008 7-Jul-11 8:55am    
sorry for late reply. this is my code(closing tags are not printing here..) (This code is working on other computer not on my pc) <asp:ScriptManager ID="ScriptManager1" runat="server"> <div> <asp:TextBox ID="txtds" runat="server"> <cc1:CalendarExtender ID="txtds_CalendarExtender" runat="server" Enabled="True" TargetControlID="txtds">
Maddy_1008 7-Jul-11 2:30am    
sorry for late reply.

this is my code(closing tags are not printing here..)
(This code is working on other computer not on my pc)

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

<div>
<asp:TextBox ID="txtds" runat="server">


<cc1:CalendarExtender ID="txtds_CalendarExtender" runat="server" Enabled="True"
TargetControlID="txtds">

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