<%@ Page Language="vb" %>
<%@ OutputCache Duration="300" VaryByParam="None" %>
<html>
<head>
<title>Adding file dependencies in ASP.NET</title>
<script runat="server">
Sub Page_Load()
Dim myArrayList As New ArrayList
myArrayList.Add(Server.MapPath("dep.txt"))
myArrayList.Add(Server.MapPath("dep1.txt"))
Response.AddFileDependencies(myArrayList)
myMessage.Text = DateTime.Now()
End Sub
</script>
</head>
<body>
<asp:label id="myMessage" runat="server"/>
</body>
</html>
|