shoppingcart.aspx.cs中我是这样写的
if(Session["Refresh"] == null)
{
Session["Refresh"] = "false";
NeedRefresh = "true";
}
if(Session["Refresh"].ToString() == "false"
{
NeedRefresh = "false";
}
shoppingcart.aspx 中的JS是这样写的
<script language="javascript">
function refresh()
{
var need_refresh = <%= NeedRefresh%>;
if(need_refresh == true)
window.history.go(0);
}
</script>
可是Page.Session.Remove("refresh"
;放在SHOPPINCART.ASPX有问题,还是不行啊