Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET SQL-Server
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 17-May-11 18:52pm
Edited 18-May-11 0:30am
v4
Comments
Mohd Wasif at 18-May-11 0:56am
   
Please tell me the formats u want to use.
Then I will be able to help you.
asifkem at 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 at 18-May-11 0:56am
   
Question is not very clear. Needs more info.
asifkem at 18-May-11 1:01am
   
only select a particular Date..other wise no chance..date could not be channged
asifkem at 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">
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
asifkem at 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)
asifkem at 18-May-11 6:18am
   
hey..finally i got the problem.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

please check that u set any values to control on page load .
  Permalink  
Comments
asifkem at 5-Aug-11 2:09am
   
Shari Rajaavey..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

try this Link
 
AJAX-Control-Toolkit-Calendar-Extender.aspx[^]
 
<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"

  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 555
1 Sergey Alexandrovich Kryukov 523
2 CPallini 415
3 George Jonsson 231
4 ChauhanAjay 160
0 OriginalGriff 5,450
1 CPallini 4,500
2 Sergey Alexandrovich Kryukov 4,032
3 George Jonsson 3,057
4 Gihan Liyanage 2,445


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 18 May 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100