页面底部加上:
<script language="javascript" type="text/javascript">
Sys.Application.add_load(
function()
{
var form = Sys.WebForms.PageRequestManager.getInstance()._form;
form._initialAction = form.action = window.location.href;
}
);
</script>
<script language="javascript" type="text/javascript">
Sys.Application.add_load(
function()
{
var form = Sys.WebForms.PageRequestManager.getInstance()._form;
form._initialAction = form.action = window.location.href;
}
);
</script>