J
Jon Prisbe
I have a datagrid. When the user presses "edit" I display a calendar control
in the 2nd cell. The cell's edit template is the calendar control.
The user selectes a date on the calendar and then presses "update".
Problem: the calendar always returns 1/1/01 when I call SelectedDate.
Here is my grid update code:
System.Web.UI.WebControls.Calendar cal = null;
cal = (System.Web.UI.WebControls.Calendar)e.Item.FindControl("Calendar1");
string date = cal.SelectedDate.ToShortDateString();
What am I doing wrong?
Thanks,
in the 2nd cell. The cell's edit template is the calendar control.
The user selectes a date on the calendar and then presses "update".
Problem: the calendar always returns 1/1/01 when I call SelectedDate.
Here is my grid update code:
System.Web.UI.WebControls.Calendar cal = null;
cal = (System.Web.UI.WebControls.Calendar)e.Item.FindControl("Calendar1");
string date = cal.SelectedDate.ToShortDateString();
What am I doing wrong?
Thanks,