+2007-10-29 Marek Habersack <mhabersack@novell.com>
+
+ * TemplateParser.cs: add the file pointed to by the Src or
+ CodeFile attributes to the list of page cache dependencies.
+
+ * PageParser.cs, UserControlParser.cs: Add the MasterPage file to
+ the list of page cache dependencies.
+
+ * MasterPageParser.cs: add the source pointed to by VirtualPath to
+ the list of cache dependencies.
+
2007-10-23 Marek Habersack <mhabersack@novell.com>
* ClientScriptManager.cs: added two constants to define start/end
ThrowParseException ("Could not load type '" + type + "'.");
} else {
string path = GetString (atts, "VirtualPath", null);
- if (path != null)
- masterType = MasterPageParser.GetCompiledMasterType (path, MapPath (path), HttpContext.Current);
- else
+ if (path != null) {
+ string mappedPath = MapPath (path);
+ masterType = MasterPageParser.GetCompiledMasterType (path, mappedPath,
+ HttpContext.Current);
+ AddDependency (mappedPath);
+ } else
ThrowParseException ("The MasterType directive must have either a TypeName or a VirtualPath attribute."); }
AddAssembly (masterType.Assembly, true);
}
masterPage = GetString (atts, "MasterPageFile", masterPage);
// Make sure the page exists
- if (!String.IsNullOrEmpty (masterPage))
- MasterPageParser.GetCompiledMasterType (masterPage, MapPath (masterPage), HttpContext.Current);
-
+ if (!String.IsNullOrEmpty (masterPage)) {
+ string path = MapPath (masterPage);
+ MasterPageParser.GetCompiledMasterType (masterPage, path, HttpContext.Current);
+ AddDependency (path);
+ }
+
title = GetString(atts, "Title", null);
theme = GetString (atts, "Theme", theme);
if (inherits != null)
SetBaseType (inherits);
#endif
+ if (src != null)
+ AddDependency (MapPath (src, false));
+
className = GetString (atts, "ClassName", null);
if (className != null) {
#if NET_2_0
if (masterPage != null) {
// Make sure the page exists
if (masterPage != null) {
- MasterPageParser.GetCompiledMasterType (masterPage, MapPath (masterPage), HttpContext.Current);
+ string path = MapPath (masterPage);
+ MasterPageParser.GetCompiledMasterType (masterPage, path, HttpContext.Current);
+ AddDependency (path);
}
}
#endif