Be aware that FindControl returns a generic Control, not directly the type of control you're expecting.
So, in your case since the Visible property is defined in the parent class Control, you have no problems. If, for example, you would have tried to set the Text (as defined in the Label "child", and not in the parent "Control"), you have to cast it first:
Dim myLabel As Label = CType(FindControl("lblFundSource" & myInt), Label)
myLabel.Visible = True
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Over & Over by
Moloko (Track 10 from the album:
Statues)
What's This?