比如A.aspx里有个 button控件,它起刷新A.aspx的作用,B.aspx是它的一个弹出页面, 在B.aspx中进行了操作(比如是更新了A.aspx中GridView的数据)后点击关闭按钮后,B.aspx关闭,然后调用A.aspx的button控件的事件处理程序刷新A.aspx,请问该怎样实现 button事件如下
protected void btnRefresh_Click(object sender, EventArgs e)
{
Response.Write(" <script>self.reload();</script>);
}
protected void btnRefresh_Click(object sender, EventArgs e)
{
Response.Write(" <script>self.reload();</script>);
}
这样试试
应该是opener.document.getElementById("btnRefresh").click();