Well, it would depend on the context (as to how to solve it, that is), but the first thing that pops into my head is trying to use findControl on a datagrid that has many rows with the same id on the controls in the row...
whereas what you might have meant to do would have been to use e.item.findControl, and this would work given the proper context, which would be in an event handler with datagriditemeventargs as the 'e' argument -- even if the same statement would have returned the error on a:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.