日期:2008-04-01  浏览次数:20647 次

private void Page_Load(object sender, System.EventArgs e)
        {

            
            ViewState["submittimes"]=Convert.ToInt32(ViewState["submittimes"])+1;
                        if(!Page.IsPostBack)
            {
                ViewState["submittimes"]=1;


            }
        }

页面:
<INPUT type="button" value="Button" onclick='history.go(-<%= (int)ViewState["submittimes"] %>)'>