A
Andrew Jocelyn
Hi
I have a simple ASP.NET web page with a single label control:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb"
Inherits="proj.TheTime" EnableViewState="false" EnableSessionState="false"%>
....
<p>
<asp:label id="Label1" runat="server">Label</asp:label></p>
....
The code behind file is compiled and contains:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Label1.Text = DateTime.Now.ToString
End Sub
I understand that the first time the web page is requested it is compiled
but it appears to be doing this every few hours. i.e. the first time takes a
couple of seconds then it refreshes very quickly. After a few hours it seems
to take the same amount of time as the first time. When I turn tracing on
(debug is off) I can see that the initial time is 0.110125 to finish page
rendering and subsequent times are about 0.000351.
This happens on 2 separate Windows 2003 Servers. I can't find anything in
the documentation about this. Can someone please let me know what I need to
do to stop the page recompiling itself so often? (If that's what it's doing)
Thanks
Andrew
I have a simple ASP.NET web page with a single label control:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb"
Inherits="proj.TheTime" EnableViewState="false" EnableSessionState="false"%>
....
<p>
<asp:label id="Label1" runat="server">Label</asp:label></p>
....
The code behind file is compiled and contains:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Label1.Text = DateTime.Now.ToString
End Sub
I understand that the first time the web page is requested it is compiled
but it appears to be doing this every few hours. i.e. the first time takes a
couple of seconds then it refreshes very quickly. After a few hours it seems
to take the same amount of time as the first time. When I turn tracing on
(debug is off) I can see that the initial time is 0.110125 to finish page
rendering and subsequent times are about 0.000351.
This happens on 2 separate Windows 2003 Servers. I can't find anything in
the documentation about this. Can someone please let me know what I need to
do to stop the page recompiling itself so often? (If that's what it's doing)
Thanks
Andrew