Adding a file dependency (VB.net) : File Dependencies « Response « ASP.Net






Adding a file dependency (VB.net)

<%@ 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("d1.txt"))
            Message.Text = DateTime.Now()
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>
           
       








Related examples in the same category

1.Adding file dependencies (VB.net)