D
Dave
I'm trying to set a Calendar Value to a control that is in the
EditItem and InsertItem Templates. It's been suggested that I use the
below lines...
TextBox t =
(TextBox)fvCapture.Row.FindControl("CaptureDateTextBox");
t.Text = Calendar1.SelectedDate.ToShortDateString();
Not quite sure what event to put it under though. Everywhere I've
used I get the below error:
Object reference not set to an instance of an object.
Can anyone help me with this one?
Thanks
EditItem and InsertItem Templates. It's been suggested that I use the
below lines...
TextBox t =
(TextBox)fvCapture.Row.FindControl("CaptureDateTextBox");
t.Text = Calendar1.SelectedDate.ToShortDateString();
Not quite sure what event to put it under though. Everywhere I've
used I get the below error:
Object reference not set to an instance of an object.
Can anyone help me with this one?
Thanks