if(Application["DisableCache"]==null)
{
Application["DisableCache"] = false;
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.Load(HttpContext.Current.Request.PhysicalApplicationPath +
"web.config");
System.Xml.XmlNode node =
doc.SelectSingleNode("/configuration/system.web/compilation");
if(node==null)
{
if(node.Attributes["debug"])
{
if(node.Attributes["debug"].Value=="true")
{
Application["DisableCache"] = true;
}
}
}
}
if(Application["DisableCache"]==true)
{
IEnumerator cache = HttpContext.Current.Cache.GetEnumerator;
while(cache.MoveNext)
{
HttpContext.Current.Cache.Remove(cache.Current);
}
}
_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net