<%@ Page Language="vb" %>
<%@ OutputCache Duration="300" VaryByParam="None" %>
<html>
<head>
<title>Adding a file dependency in ASP.NET</title>
<script runat="server">
Sub Page_Load()
Response.AddFileDependency(Server.MapPath("dep.txt"))
myMessage.Text = DateTime.Now()
End Sub
</script>
</head>
<body>
<asp:label id="myMessage" runat="server"/>
</body>
</html>
|