Object reference not set to an instance of an object.

  • Thread starter Thread starter Fetty
  • Start date Start date
F

Fetty

Dim sTextBoxName As String =
e.Item.Cells(0).FindControl("tbtempDateF").ClientID() ******Error Here

CType(e.Item.FindControl("lnkCalendarF"), HyperLink).NavigateUrl =
"javascript:calendar_window=window.open('calendar.aspx?formname=Form1." &
sTextBoxName &
"','Pick_A_Date','width=154,height=210');calendar_window.focus();"
 
Clearly, something in that chain is coming up with a null reference. My
guess is that it cannot find the control you are telling it to via
FindControl.
 
probably..
Solved it?
Patrick

Marina said:
Clearly, something in that chain is coming up with a null reference. My
guess is that it cannot find the control you are telling it to via
FindControl.
 
Back
Top