Object reference not set to an instance of an object.

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();"
 
M

Marina

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.
 
G

Guest

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.
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top