Global asax:-The file is an optional file used to and handle application and session-level events and objects for an ASP.NET web site running on an IIS Web Server. The file contains ASP.NET program code, and is the .NET counterpart of the Global.asa file used for ASP.
<%@ Application Language="C#" %>
<script Runat="server">
void Application_start(Object Sender EventArgs)
{
Application["No of visitor visited]=0;
}
void Session_Start(Object Sender Event Args)
{
Application.Lock();
Application.["No of Visitor visited"]=(int)Application[ "No of Visitor visited"'+1;
Application.Unlock();
}
</script>
Default Page.
<b>
No of visitor
</b>
<tr>
<td>
<asp:Label Id="lblCount" Runat="server" />
</td >
</tr>
Page Load
lblCount.Text=Application[""No of Visitor visited"].To String();