I just like this implementation of doing this pretty useful task...one of those things you end up doing over and over (I'm going to extend it to work with ViewState :-)). Also, a nice example of using Attributes and Reflection for something useful...