Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 06, 2009 08:01 AM by davidfowl
Dec 19, 2008 12:57 AM|LINK
Please read this blog post before you start using FindControl
or go digging into the control tree.
Dec 26, 2008 10:13 AM|LINK
Is this very helpful in handling user controls ?
Please let me know the advantages of this.
Dec 27, 2008 09:27 PM|LINK
it's the only way to get data from controls inside data controls
Dec 28, 2008 01:09 AM|LINK
Dec 28, 2008 11:23 AM|LINK
Dec 28, 2008 03:34 PM|LINK
If you read the article, you'll see that the method is embedded in the framework and on the
ListView the method is public.I don't know exactly why we made the decisions we did my not exposing that method on the other controls, but FindControl is an abused function and people don't know how to use it properly. Wouldn't
you rather have an api to get the values (because that is what you really want), rather than the thing that contains the values? Supposed your using bound fields and turned HtmlEncode and other formatting options on for your cell, do you want
to use FindControl and have to figure out what sequence of methods to call to get the unformatted data back? Why not call
ExtractValuesFromCell which knows how to do that?
I'm not saying don't use FindControl its just not the silver bullet that fixes all problems.
Hope this helps
Dec 28, 2008 10:53 PM|LINK
You are correct [:)] I think it's funny because it's the first time ever I see someone using this method. While everyone is using FindControl as a standard.
I'm going to keep this in mind next time I need to get the value out of datacontrol. Thank you.
Dec 31, 2008 10:18 AM|LINK
its like this
Dec 31, 2008 03:30 PM|LINK
Why use FindControl if you don't have to?
Dec 31, 2008 06:20 PM|LINK
david, why you say that.. can you explain your idea??