HttpResponse.AddFileDependency Method
.NET Framework 3.0
Adds a single file name to the collection of file names on which the current response is dependent.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following code example adds a single file name to the AddFileDependency file dependency list. If the file changes, the cached response is invalidated.
String fileName; fileName = "C:\\Files\\F1.txt"; get_Response().AddFileDependency(fileName);
var fileName : String = "C:\\Files\\F1.txt" Response.AddFileDependency(fileName)
Community Additions
ADD
Show: