Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
|
Hi,
I have an asp.net 2.0 form view within a panel control (id="dvSchedule") and I am attempting to retrieve / set values to a form element, for example:
CType(FormView1.FindControl("StartTimeTextBox"), TextBox).Text = e.RangeStartValue
However, I receive an error:
System.NullReferenceException: Object reference not set to an instance of an object.
How do I reference the form elements?
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
|