日期:2014-05-03 浏览次数:24332 次
using System;
using System.Configuration;
using System.Data;
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;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//Application["app"] = "value";
//Response.Write(Application["app"].ToString());
//Response.Write("<br />");
//Response.Write(Server.MapPath("."));
//Response.Write("<br />");
//Response.Write(Server.MapPath("~"));
if (!this.IsPostBack)
{
Application["count"] = 1;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
int i=Convert.ToInt32(Application["count"]);
i++;
Application["count"] = i;
Response.Write(Application["count"].ToString());
}
}