T
targus
Please help, I need a solution to this problem.
What I want to do:
I have a history grid that gets filled with 2 weeks data prior to a
specified date. The user picks the specified date from the calendar
control. I load data from the database using the new specified date
and rebind the grids.
The problem:
The calendar.SelectedDate is not correct in Page_Load.
The calendar.SelectedDate gets updated during RaisePostBackEvent
(cal1_SelectionChanged) but that occurs AFTER Page_Load is finished.
This means that in Page_Load the calendar.SelectedDate is still the old
date.
Is there a way to get the calendar's clicked date in Page_Load someway?
Targus
What I want to do:
I have a history grid that gets filled with 2 weeks data prior to a
specified date. The user picks the specified date from the calendar
control. I load data from the database using the new specified date
and rebind the grids.
The problem:
The calendar.SelectedDate is not correct in Page_Load.
The calendar.SelectedDate gets updated during RaisePostBackEvent
(cal1_SelectionChanged) but that occurs AFTER Page_Load is finished.
This means that in Page_Load the calendar.SelectedDate is still the old
date.
Is there a way to get the calendar's clicked date in Page_Load someway?
Targus