ABSTRACT

Then add the following lines to your front page HTML where you want the message to appear (which will be centred): <%

%>

Response.Write("<center>There have been ") Response. Write( application("cou nt")) Response.Write(" visitors to this page since ") Response. Write( application("serverstart")) Response.Write("</center>")

3) In the next example a loop calculates a value (this is simply a counter-in a real project it could be a complex mathematical expression) and stores it in an application variable. Any pages have access to this value without needing to recalculate it. Imagine if every session had to perform the same loop - server performance would severely degrade. You could also place code in Session_ OnStart in circumstances where data changes for each user but only once during a session.