concept trick in category asp.net

appears as: trick, tricks, tricks
ASP.NET 4.0 in Practice

This is an excerpt from Manning's book ASP.NET 4.0 in Practice.

If you take a deeper look at the code, you’ll see how simple this markup is for a user who knows HTML. It uses no special ASP.NET-only tags! (In chapter 15, when we analyze how to dynamically load and compile markup from other sources, like a database, you’ll learn how you can use the virtual path provider to close this circle. You’ll be able to load this content from a database where the user has stored it). The markup is stored in a pared-down format that’s transformed in control instances at runtime. You don’t need to transform them by hand because the Page Parser will do the trick for you.

Cache in ASP.NET 4.0 might benefit from these new features, which will add more granular control over an item’s expiration policy and support custom providers, like the one you use when you have to share the cache items across multiple, different servers. Before moving on to the topics related to building custom cache providers, listen up while we tell you about some tips and tricks that are useful when you’re working with caching.

14.4.1. Cache tips and tricks

This section consists of a list of tips and tricks that we’ve learned from our own experience of working with caching in everyday applications. Use this information as a guide to enhance your cache strategy and get some great advice from us!