I have to say, I've never done that in web forms. I think any language/environment gives you the opportunity to do things in a bad way. It doesn't mean you should.
If that line of code scares you (as it should), don't write it. David "If we can hit that bullseye, the rest of the dominoes will fall like a house of cards... checkmate!" -Zapp Brannigan, Futurama On Fri, Mar 19, 2010 at 11:01, Jonathan Parker <[email protected]> wrote: > To anyone who is still in love with webforms: > var myString = > ((TextBox)mycontrol.Controls[0].Controls[3].Controls[5].Controls[2]).Text;
