Skip to Content
Beginning ASP.NET 3.5: In C# and VB
book

Beginning ASP.NET 3.5: In C# and VB

by Imar Spaanjaars
March 2008
Intermediate to advanced content levelIntermediate to advanced
766 pages
21h 15m
English
Wrox
Content preview from Beginning ASP.NET 3.5: In C# and VB

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.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning ASP.NET 4: in C# and VB

Beginning ASP.NET 4: in C# and VB

Imar Spaanjaars
Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Bill Evjen, Scott Hanselman, Devin Rader

Publisher Resources

ISBN: 9780470187593Purchase book