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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top