如何重新加载包含新内容的页面 [英] How to reload a page with fresh content

查看:82
本文介绍了如何重新加载包含新内容的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的asp.net项目中,我打开了一个页面(页面A)并在那里做了一些工作。然后我打开了另一页(第B页)。我又回到了A页面,可以看到A页面上还有一些内容。我怎样才能让Page A在最初加载时完全焕然一新?谢谢。

In my asp.net project, I opened a page (Page A) and did some work there. Then I opened another page (Page B). The, I came back to Page A again, and could see that Page A with some contents presented before still there. How can I get Page A totally fresh as it was initially loaded? Thanks.

推荐答案

使用类似 jQuery / AJAX SignalR



编辑

--------- --------

查看此jQuery示例

部分从iframe刷新父页面而不使用asp.net中的javascript重新加载iframe [ ^ ]



并检查过去关闭子页面时重新加载父页面的答案

我正在使用两个弹出窗口如何重新加载第一个窗口关闭第二个弹出窗口 [ ^ ]



你可以计时器 [ ^ ]用于自动刷新并提及间隔。



所以玩(并在可能的情况下结合这些)来实现目标。
Use things like jQuery/AJAX, SignalR

EDIT
-----------------
Check this jQuery sample
Refresh parent page partially from iframe without reloading the iframe using javascript in asp.net[^]

And check this past answer for reloading the parent page when you close child page
I am using two pop up window how to reload first window closing second popup window[^]

You could the Timer[^] for automatic refresh with mentioned interval.

So play(& combines these if possible) to achieve things.


这篇关于如何重新加载包含新内容的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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