friends,
i am using asp.net calendar control on page.
dynamically i am assigning it previous month date value.
it selects that date which is fine but not month
so the calendar shows current month when i use previous button then that date is selected.
any one guide me what is the solution?
my code
calstarting.SelectedDate = item.StartDate; // previous month date
calending.SelectedDate = item.EndDate; // previous month date
any help would be appreciated.
You should use
Instead of
SelectedDateuseTodaysDateand then useSelectedDateto show that date selected.