ASP.NET(vb.net) Response.Expires() - Response Object - Response.Expires() : The Expires property specifies the duration of time before a page that is cached on a browser expires. If the user returns to the same page before it expires, the cached version is displayed.
ShotDev Focus:
- ASP.NET(vb.net) Response.Expires() - Response Object
Example
AspNetResponseExpires.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) Response.Expires = 1200 lblText.Text = "Time Now : " & Date.Now() End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form id="form1" runat="server"> <asp:Label id="lblText" runat="server"></asp:Label> </form> </body> </html>
Screenshot
1appliance…
…