October 2010
Intermediate to advanced
1920 pages
73h 55m
English
XmlDataSource ControlUnlike the SqlDataSource and ObjectDataSource controls, the XmlDataSource control has caching enabled by default. The XmlDataSource automatically creates a file dependency on the XML file that it represents. If the XML file is modified, the XmlDataSource control automatically reloads the modified XML file.
For example, the page in Listing 29.31 contains an XmlDataSource control that represents the Movies.xml file. If you modify the Movies.xml file, the contents of the files automatically reload.
Listing 29.31. ShowXmlDataSourceCaching.aspx
