Click here to Skip to main content
14,880,752 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to use Ajax Calendar extender in asp.net page.

I used the below code...

i have a table that contains a TEXTBOX,an IMAGE BUTTON

XML
<td>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
 <asp:TextBox ID="TextBox11" runat="server" CssClass="textbox"></asp:TextBox>
<asp:ImageButton ID="ImageButton1" runat="server" Height="19px" ImageUrl="~/Calendar_scheduleHS.png" Width="20px" OnClick="ImageButton1_Click"/>
<cc1:CalendarExtender id="CalendarExtender1" runat="server" Format="MM/dd/yyyy" PopupButtonID="ImageButton1" TargetControlID="TextBox11"></cc1:CalendarExtender>
</td>





My need is when i clicked on the image button,the ajax calendar will show and when i clicked on the calendar,the same will close.

When i use the above code,the page is loading,but nothing is happening.

Kindly help me to do this.....
please give me the exact way to do it





Thanking you
Kishore R
Posted
Updated 24-Jan-11 17:13pm
v3

Instead of ScriptManager use ToolScriptManager.

Else Your code is correct. It's working on my side. If still you get an error can you specify exact error.
   
Comments
kishore Rajendran 25-Jan-11 0:02am
   
Very much thankfull............working for me
Scriptmanager, yes.

UpdatePanel, no, unless you need it for something else.

You should be getting compile errors without the scriptmanager on the page.
   
If you are using earlier version of the toolkit Image button would post back. Not sure this is your problem but better to use a html image control.

For more check here[^]
   

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