你好的这个重载是第一次载入页面就重载一次,还是在客户端事件触发重载一次?
要是第一载入页面就重载一次的话,在!IsPostBack中加一句:
string str="<script language=jscript>";
str +="page.window.location.reload()";
str +="</script>";
Page.RegisterStartupScript("scriptName",str);要是你想在客户端的事件发生重载,比如在一个webbutton被点击时重载,就给这个webbutton增加一个属性:
Attributes["onClick"] = "javascript:window.location.reload()";