October 2010
Intermediate to advanced
1920 pages
73h 55m
English
DataSource Control Key DependencyImagine that your web application has multiple pages that display different sets of records from the Movies database table; however, you have one page that enables a user to enter a new movie. In that case, you need some method of signaling to all your DataSource controls that the Movies database table has changed.
You can create a key dependency between the DataSource controls in your application and an item in the cache. That way, if you remove the item from the cache, all the DataSource controls reload their data.
The page in Listing 29.32 contains a SqlDataSource control that displays the contents of the Movies database table. The SqlDataSource caches its data for an infinite duration.
Listing ...
Read now
Unlock full access