如何在弹出窗口后刷新部分页面? [英] How should i refresh part of page after popup window?

查看:96
本文介绍了如何在弹出窗口后刷新部分页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从弹出窗口返回后更新网格和网格。

现在当我从弹出窗口返回以下代码时,整个页面都会刷新并且所有信息重置!!!

Hi,How can i update a grid and just a grid after returning from a popup window.
Now when i back from popup window with below codes, the whole page is refreshed and all the information reset!!!

Response.Write("<script>window.opener.location.href = window.opener.location.href;</script>");
Response.Write("<script>self.close();</script>");



我想刷新网格,因为弹出窗口中的某些内容发生了变化。



我的问题就是当弹出窗口关闭时,整个页面都会被刷新,所以我放弃了之前加载的所有信息。

如何防止整个页面刷新?


I want to refresh grid because somethings changed in popup window.

My problem is that when the popup window is closed, the whole page is refreshed so i loose all information that i load before.
How can i prevent the whole page refreshed?

推荐答案

尝试UpdatePanel。它只会刷新网页的某些部分。



有很多例子。你可以参考这个.. http://msdn.microsoft.com/ en-us / library / bb399001(v = vs.100).aspx [ ^ ]
Try UpdatePanel. It will refresh only some portion of the web page.

There are many examples out there. You can refer to this..http://msdn.microsoft.com/en-us/library/bb399001(v=vs.100).aspx[^]


这篇关于如何在弹出窗口后刷新部分页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆