findcontrol is nuts!

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")
 
E

Eliyahu Goldin

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top