The truth about control.FindControl and control.FindName

  • Thread starter Thread starter zequion1
  • Start date Start date
Z

zequion1

Guest
I have a program in WPF version and in Asp.net
In both versions, I need to be able to find a set of program form controls.

I find that in WPF there is a "FindName" function that instantly finds the control by name by retrieving the control from an internal dictionary.

However, in Asp.net there is only the "FindControl" function that does not use an internal dictionary and that only finds the control if it is directly under the indicated container, so it finds almost nothing.

So it only remains to search each control recursively, so it is much slower than "FindName" and also forces me to program a completely different set of functions from the one used by WPF.

Congratulations to all. I keep finding Microsoft **** that they also don't solve. Comments?

Continue reading...
 
Back
Top