ASP.Net/Response/File Dependencies — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:54, 26 мая 2010
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>
Adding file dependencies (VB.net)
<%@ 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("d1.txt"))
myArrayList.Add(Server.MapPath("d2.txt"))
Response.AddFileDependencies(myArrayList)
Message.Text = DateTime.Now()
End Sub
</script>
</head>
<body>
<asp:label id="Message" runat="server"/>
</body>
</html>