asp.net 网站访客量统计问题

<asp:Label ID="Label2" runat="server"></asp:Label> </p>

在 Default。aspx.cs 中
定义了一个Count 通过每次读取这个 页面
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string Count = Application["count"].ToString();
}
}
}

请注意。 这里这2部分不再一起

 

放到session里,session["count"]=Count;然后在label2.Text=Session["count"].toString();

posted @ 2009-12-31 14:19  708先生  阅读(420)  评论(0编辑  收藏  举报