日期:2014-05-17 浏览次数:20434 次
public int clickNum
{
get
{
object obj = this.ViewState["clickNum"];
return (obj == null) ? 0 : (int)obj;
}
set
{
if (value != this.clickNum)
this.ViewState["clickNum"] = value;
}
}
protected void btn_button_Click(object sender, EventArgs e)
{
this.clickNum +=1;
}