reload or reset location.href is like another GET, if you need to keep the current view state but modify some other parts, you can use javascript inside your IFRAME:parent.document.forms[0].submit();orparent.document.getElementById("SomeButtonID").click();
top.location.href = top.location.href;top.location.reload();
{
YourButton.Attributes["onclick"] = "javascript:parent.document.forms[0].submit(); return false;";
}
top.location.href = top.location.href 那里设置呢??
YourButton.Attributes["onclick"] = "javascript:parent.document.forms[0].submit(); return false;";我放在这里 出错 Page.RegisterStartupScript("q", "<script language=javascript>javascript:parent.document.forms[0].submit(); return false;</script>")
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtml_reference_entry.asp
提示window.parent.contents.location 为空或者不是对象
另外请教您能不能介绍一些将上面这些语句的书呀谢谢!!
msdn 有时间一定要看