//要刷新几级父窗体就用几个parent
string s="<script language='javascript'>parent.location.reload();</script>";
if(!this.IsStartupScriptRegistered("sat"))
{
this.RegisterStartupScript("sat",s);
}
string s="<script language='javascript'>parent.location.reload();</script>";
if(!this.IsStartupScriptRegistered("sat"))
{
this.RegisterStartupScript("sat",s);
}
本文介绍了一种使用JavaScript来刷新多级父窗体的方法。通过注册StartupScript并利用location.reload()函数,可以有效地更新父窗体的内容。这种方法在Web应用中特别有用,尤其是在需要同步多个窗口或标签页的状态时。
185

被折叠的 条评论
为什么被折叠?



