Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i hv used a calender extender control but after debuggging its not working, calender is not opening. need ur help.
my code is...

XML
<td colspan="1">
<asp:Image ID="Image2" runat="server" CssClass="calender"
        AlternateText="Click to Open Calender" ImageUrl="~/image/cal.jpg" />
    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDateFrom" Format="yyyy/MM/dd">    </asp:CalendarExtender></td>
Posted
Comments
[no name] 10-Sep-13 6:34am    
are you sure it is "asp:CalendarExtender", coz as far i know its asp:Calender and one more thing u mentioned Ajax as the tag for ur question..i m not really getting where u use ajax...
[no name] 10-Sep-13 6:44am    
i hv registered it like this , i m not sure where it is rt. or wrong.
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

please suggest me right way..
Dholakiya Ankit 10-Sep-13 8:00am    
have u added ajax reference?

1 solution

<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="Image2" Format="yyyy/MM/dd">    </asp:CalendarExtender>


Try This...


Your TargetControlId is Wrong..
 
Share this answer
 

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



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