findcontrol is nuts!

  • Thread starter Thread starter Mr. SweatyFinger
  • Start date Start date
M

Mr. SweatyFinger

What gives?
These two controls are right next to each other in a usercontrol, yet in the
code-behind


Can't find:
Dim summaryx As HiddenField = FormView1.FindControl("Summary2")



Can find:

Dim PlaceHolderPrice2 As PlaceHolder =
FormView1.FindControl("PlaceholderPrice2")
 
Just keep in mind that FindControl looks only in its Controls collection. It
can't find controls in Controls collections of children controls. In your
case PlaceholderPrice2 is likely located inside some other control.
 
Back
Top