using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page 
{
      
    protected void Page_Load(object sender, EventArgs e)
    {
        Image1.ImageUrl = "myimage.jpg";  
        Application.Lock();//锁定Application对象变量，防止多个用户同时访问
        Application["Pagecount"] = Convert.ToInt32 (Application["Pagecount"] )+ 1;//Application对象变量累加计数
        Label1.Text ="你是第 " + Application["Pagecount"] + " 位访问者";
        Application.UnLock();//解锁Application对象变量

    }
}
