Dim sTextBoxName As String =
e.Item.Cells(0).FindControl("tbtempDateF").ClientID() ******Error Here
CType(e.Item.FindControl("lnkCalendarF"), HyperLink).NavigateUrl =
"java script:calendar_window=window.open('calendar.aspx?formname=Form1." &
sTextBoxName &
" ','Pick_A_Date','width=154,height=210');
calendar_window.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 =
> "java script:calendar_window=window.open('calendar.aspx?formname=Form1." &
> sTextBoxName &
> " ','Pick_A_Date','width=154,height=210');
calendar_window.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...
>
>
Friday, March 16, 2012
Object reference not set to an instance of an object.
Labels:
asp,
cells,
clientid,
dim,
error,
findcontrol,
herectype,
instance,
item,
lnkcalendarf,
net,
object,
reference,
stextboxname,
string,
tbtempdatef
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment