Click here to Skip to main content
15,905,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am usiing Ajax Calendar Extender in my application. But i am unable to popup calendar. when i run this page it is not give any error ,but after click on the image button ,this is not open,
Plz canany one help me?
My code is this..
<asp:Label ID="Label3" runat="server" Text="From:">    
                                                <asp:TextBox ID="TextBox1" runat="server"> <asp:ImageButton ID="ImageButton2"
                                                    runat="server" ImageUrl="~/images/calander.gif" />
                                                 
                                                
                                                <cc1:CalendarExtender ID="CalendarExtender1"  runat="server" PopupButtonID="ImageBotton1" TargetControlID="TextBox1" >
                                                
                                                
                                                <asp:Label ID="Label4" runat="server" Text="To">
                                                <asp:TextBox ID="TextBox2" runat="server"> <asp:ImageButton ID="ImageButton3"
                                                    runat="server" ImageUrl="~/images/calander.gif" />
Posted
Updated 17-Oct-11 2:05am
v2

For Calender you set PopupButtonID="ImageBotton1" but there is not control holding id "ImageBotton1"

the following code workd there

<asp:imagebutton id="ImageBotton1" xmlns:asp="#unknown">
runat="server" ImageUrl="~/images/calander.gif" />


Thanks
Faisal
 
Share this answer
 
v2
use this it works fine..


XML
<asp:TextBox ID="txtDOB" runat="server" class="datefd" />&nbsp;
                                                    <asp:ImageButton ID="imgcalnd" runat="server" Height="16" Width="16" ImageUrl="~/images/Calendar.png" />
                                                    <cc1:CalendarExtender ID="calcontl" runat="server" TargetControlID="txtDOB" PopupButtonID="imgcalnd"
                                                        Format="dd/MM/yyyy" />
 
Share this answer
 
Hi I Have remove this problem,
When I was adding web reference, that time web config file unable to get this code, when i wrote this code in web config file then my calendar is popup,
XML
<httpHandlers>
            <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
        </httpHandlers>
        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </httpModules>
 
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