14.4. Practical Data Tips
Here are some practical data tips.
Whenever you use the numerous style properties of the data-bound controls, consider using the CssClass property instead of setting the individual style properties directly on the style.
The section about the control's life cycle has an exercise that shows you how to display the various events and the order they occur in. You could extend the example and write code for even more events. Additionally, you could add more controls to the page and handle their events as well to help you establish a solid understanding of those events. Because a good understanding of those events and their order is often critical in writing web applications, the time you put into this little research project is well spent.
Whenever you are writing pages that access a database or other slow or scarce resources like files or web services, consider if they can benefit from caching. Although it's not that hard to add caching at a later stage, it's best to put it in as early as possible. That way, you know your caching code gets thoroughly tested and your application gains from the performance benefits that caching brings right from the start.