对ASP.NET中的编辑器表示怀疑 [英] Doubt About Editor in ASP.NET

查看:101
本文介绍了对ASP.NET中的编辑器表示怀疑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上有一个链接按钮,当我单击该按钮时,网页的内容应以html的形式显示在窗口中,如果我在该窗口中进行了任何更改,则这些更改应在我的网站中进行更新还

have a link button in my website, and when i click on that button the content of the web page should appear in a window in the form of html and if i make any changes in that window that changes should updated in my website also

推荐答案

基本上,您需要使用JS进行此操作.

您将需要使用opener属性:
opener属性设置或检索对创建当前窗口的窗口的引用.当源文档通过调用open()方法打开目标窗口时,(目标窗口的窗口对象的)opener属性指定源文档的窗口.此属性在打开的窗口中始终保持卸载状态,因此即使更改了新窗口中的URL,也可以对其进行访问

在互连网上有很多这样的例子:
http://www.webreference.com/js/tutorial1/opener.html [ ^ ]
Basically you need to do this with JS.

You will want to use the opener property:
The opener property sets or retrieves a reference to the window that created the current window. When a source document opens a destination window by calling the open() method, the opener property (of the destination window''s window object) specifies the window of the source document. This property persists across document unload in the opened window, so it can be accessed even if the URL in the new window is changed

Lots of examples of this on the interwebs:
http://www.webreference.com/js/tutorial1/opener.html[^]


这篇关于对ASP.NET中的编辑器表示怀疑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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