Request for a Better FindControl Method in ASP.NET
I'm spending hours trying to get a reference to a FileUpload control that's inside an InsertTemplate which is inside a Panel which is inside a Listview which is inside a Panel in an ASP.NET ContentPlaceHolder.
It's crazy to have to figure out all these naming containers (and parents, grandchildren, cousins, and in-laws) manually when ASP.NET creates the control structure and knows perfectly well where things are and what they're called.
Therefore, it would be nice to have a better FindControl method that would automatically (using LINQ?) do the recursion to come up with the control reference. You'd just pass in the control ID as a string.
When I look at the browser DOM's document.getElementId("txtJLLAmt1") I have to think this could be built into ASP.NET. Here's a post with the basic idea that the ASP.NET Team could build on:
Thanks for listening. I feel better having ranted - even though I don't have the problem solved.