Thursday, March 22, 2012

Object reference not set to an instance of an object.

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.a spx?formname=Form1." &
sTextBoxName &
"','Pick_A_Date','width=154,height=210');calendar_w indow.focus();"

--
I am using the free version of SPAMfighter for private users.
It has removed 0 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!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.

"Fetty" <dfetrow410@.hotmail.com> wrote in message
news:%234MlSpxVFHA.3488@.tk2msftngp13.phx.gbl...
> 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.a spx?formname=Form1." &
> sTextBoxName &
> "','Pick_A_Date','width=154,height=210');calendar_w indow.focus();"
>
> --
> I am using the free version of SPAMfighter for private users.
> It has removed 0 spam emails to date.
> Paying users do not have this message in their emails.
> Try www.SPAMfighter.com for free now!
probably..
Solved it?
Patrick

"Marina" wrote:

> 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.
> "Fetty" <dfetrow410@.hotmail.com> wrote in message
> news:%234MlSpxVFHA.3488@.tk2msftngp13.phx.gbl...
> > 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.a spx?formname=Form1." &
> > sTextBoxName &
> > "','Pick_A_Date','width=154,height=210');calendar_w indow.focus();"
> > --
> > I am using the free version of SPAMfighter for private users.
> > It has removed 0 spam emails to date.
> > Paying users do not have this message in their emails.
> > Try www.SPAMfighter.com for free now!
>

0 comments:

Post a Comment