Last post Sep 23, 2016 02:40 AM by Nan Yu
Sep 19, 2016 07:02 PM|kaushiklotus|LINK
I Have one asp.nt calender , one label , one button .On selecting date from calender and then pressing button i am saving data in database.
Button and label (To display message) have been kept inside same update panel. But when i click button and after saving task calender selected date is not
cleared. Also it not get cleared when i do page refresh .But if i place calender inside update panel it will get cleared.
How i can clear the selected date of calender?
Sep 20, 2016 06:30 AM|Nan Yu|LINK
Do you place calendar control in different update panel and Button and label in one update panel ? You could try to clear SelectedDates of calendar control like :
protected void Button1_Click(object sender, EventArgs e)
Sep 23, 2016 02:00 AM|kaushiklotus|LINK
The above code is not working i had tried earlier.
I have not put calender in update panel while button and label is in one update panel
Sep 23, 2016 02:40 AM|Nan Yu|LINK
when you click the button, only controls that are inside the update panel will be updated. The calendar control is outside the updatepanel. So the easiest/quickest solution is to put the calendar inside the update panel as well. Another solution
is to put that calendar in separate UpdatePanel and call .Update() whenever required. Here is a demo :