Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Ajax calendarextender control not working properly in asp.net..date could not be changed..can u help me...please...
(ajax calendarextender not working load a data to that calender text box)
Posted
Updated 18-May-11 0:30am
v4
Comments
Mohd Wasif 18-May-11 0:56am    
Please tell me the formats u want to use.
Then I will be able to help you.
Mohammed Asif.K 18-May-11 1:01am    
i implement..but when the user change the date but no change. //My Code Format ---------------- <asp:TextBox runat="server" Width="150px" ID="txtbx_Preferred_Day"/> <ajaxToolkit:calendarextender TargetControlID="txtbx_Preferred_Day" Format="dd/MM/yyyy" ID="cldr_Prefferd_Day" runat="server">
Abhinav S 18-May-11 0:56am    
Question is not very clear. Needs more info.
Mohammed Asif.K 18-May-11 1:01am    
only select a particular Date..other wise no chance..date could not be channged
Mohammed Asif.K 18-May-11 0:58am    
i implement..but when the user change the date but no change.
//My Code Format
----------------
<asp:TextBox runat="server" Width="150px" ID="txtbx_Preferred_Day"/>
<ajaxToolkit:calendarextender TargetControlID="txtbx_Preferred_Day" Format="dd/MM/yyyy" ID="cldr_Prefferd_Day" runat="server">

I think the problem is that the textbox is disabled. Do one thing make the textbox Enable and then try to change the dates. If it works, then you can make the textbox as disbale on run time.

Try once and let us know
 
Share this answer
 
try this Link

AJAX-Control-Toolkit-Calendar-Extender.aspx[^]

XML
<ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" PopupPosition="Right" PopupButtonID="TextBox2"
    TargetControlID="TextBox1">
</ajaxToolkit:CalendarExtender>
<ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" PopupPosition="Right" PopupButtonID="Image2"
    TargetControlID="TextBox2" Format="dddd, MMMM dd, yyyy">
</ajaxToolkit:CalendarExtender>


You need to give popup button id like On click of textbox or any other Button on Click of which calendor will PopUp.  PopupButtonID="TextBox2" Or PopupButtonID="Image2"
 
Share this answer
 
v2
please check that u set any values to control on page load .
 
Share this answer
 
Comments
Mohammed Asif.K 5-Aug-11 2:09am    
Shari Rajaavey..
Thanks for You Reply I think u want to insert Calender value in database

for that on click button change you code for date as follows:

DateTime DOB = DateTime.ParseExact(txtbx_Preferred_Day.Text, "dd/MM/yyyy", null);
and make
<asp:TextBox runat="server" Width="150px" ID="txtbx_Preferred_Day"/> <ajaxToolkit:calendarextender TargetControlID="txtbx_Preferred_Day" Format="dd/MM/yyyy" ID="cldr_Prefferd_Day" runat="server">

as same
 
Share this answer
 
Comments
Mohammed Asif.K 18-May-11 1:11am    
thank you for your replay.this not my problem actually my problem is the controller only select first time..example i select 21/02/2011 and need a change to 22/02/2011 but i can't..date could not be changed..(only change first time)
Mohammed Asif.K 18-May-11 6:18am    
hey..finally i got the problem.

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