<%@ language="c#" %> 
<html>
 <script language="c#" runat=server>
  private void Page_Load(object sender, System.EventArgs e){
             Application.Lock();
             Application["counter"] = Convert.ToInt32(Application["counter"])+1;
             Application.UnLock();
}
</script>
<head>
<title>Application对象方法试验 </title>
</head>
<body>
<center>
<h2>Application对象Lock方法试验</h2>
<hr>
你是第<%=Application("counter")%>位访问者！
 </center>
</html>
