ASP.NET: Dan’s list of tips

19 Apr

Dan Wahlin just posted a list of tips and tricks in ASP.NET 2.0.  This is a pretty nice list of some of the things 2.0 has to make life easy for developers.  I’ve known and used all of these, except one: the “$” shortcut.  Dan also has a more detailed post on using the “$” shortcut to find child controls.  In a nut shell, if you want to reference a control inside a template of another control (say a FormView) just use the format “FormView1$TextBox1”.  This will work in an ASP server tag, as well as in a FindControl().