Calendar.SelectedDate and grid.DataBind problem

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top