N
Nick
Hi,
Can anyone take a look at the code below and suggest why it may not be
working
---------------------------------
Dim test As ImageButton
test = CType(e.Row.Cells(1).FindControl("ButtonField"), ImageButton)
test.ImageUrl = "~/status_failed.gif"
---------------------------------
I'm doing this when DataBound for the Gridview section.
I get, Object not set to an instance of an object.
So it looks like it can't find the object? I've tried changing the code so
many times and it fails to work.
I've spent weeks on this code. any idea's?
Cheers,
Nick
Can anyone take a look at the code below and suggest why it may not be
working
---------------------------------
Dim test As ImageButton
test = CType(e.Row.Cells(1).FindControl("ButtonField"), ImageButton)
test.ImageUrl = "~/status_failed.gif"
---------------------------------
I'm doing this when DataBound for the Gridview section.
I get, Object not set to an instance of an object.
So it looks like it can't find the object? I've tried changing the code so
many times and it fails to work.
I've spent weeks on this code. any idea's?
Cheers,
Nick