Ajax calender placed in update panel

Posted by Samanthajyesta under ASP.NET AJAX on 10/12/2011 | Points: 10 | Views : 1425 | Status : [Member] | Replies : 5
Hi All,
I have placed one Ajax calender control extender in update panel , where i have to display the data according to the date selected from the Ajax calender. But while selecting date and clicking on OK button, the data is displaying and the date that we have selected is changing to the previous day's date. If again i click on the button"OK" then the date is again gets changing.

It is working fine in my local solution.and the issue is happening in published site.
Plz suggest me a good solution.


Cheers,
Samantha.

http://www.dotnetfunda.com


Responses

Posted by: Vuyiswamb on: 10/12/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
So if i get you correctly you are loosing the Date selected ?

Does the page Flicker(do a postback) when you select ?



Thank you for posting at Dotnetfunda
[Administrator]

Samanthajyesta, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Samanthajyesta on: 10/13/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Vuyiswamb,
First of all thank u for your post.
Here my page is getting postback after clicking the button. and date is changing to previous day's date all over the site. and this is working fine at my local site. but im getting this issue at published site.

Cheers,
Samantha.

http://www.dotnetfunda.com

Samanthajyesta, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 10/13/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
is the Button inside the Updatepanel ?

Thank you for posting at Dotnetfunda
[Administrator]

Samanthajyesta, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Samanthajyesta on: 10/19/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,
Here my button is not placed in update panel. it is out side the panel.

http://www.dotnetfunda.com

Samanthajyesta, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 10/19/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Then you need to make that button a Trigger, that is why you are losing the selections. It Flickers. Look at how it is done here

http://msdn.microsoft.com/en-us/library/bb386454.aspx

http://www.asp.net/ajax/tutorials/understanding-asp-net-ajax-updatepanel-triggers

Thank you for posting at Dotnetfunda
[Administrator]

Samanthajyesta, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response