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"] %>)'>