ietprofessional
Programmer
Hi!
I keep getting this error when I try to make a link button invisible that is in a user control:
Object reference not set to an instance of an object.
Any ideas?
Tanks!
Code:
Dim i As controlname = New controlname
Dim i2 As LinkButton = CType(i.FindControl("lnkServices"), LinkButton)
i2.Visible = False
I keep getting this error when I try to make a link button invisible that is in a user control:
Object reference not set to an instance of an object.
Any ideas?
Tanks!