从弹出导致回发到不同的页面 [英] Causing a PostBack to a different page from a PopUp

查看:104
本文介绍了从弹出导致回发到不同的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个主页和详细信息页面。

I have a main page and a details page.

详细信息页面是从主网页调用的JavaScript弹出。

The details page is a javascript popup invoked from the main page.

在保存按钮,点击详细信息页面上,我想主要的页面为刷新。

When the 'save' button is clicked on the details page, I want the main page to 'refresh.'

有没有调用回发到主页,同时也保持从细节页面保存回发的方法是什么?

Is there a method of invoking a postback to the main page while also maintaining the save postback from the details page?

修改 - 使用window.opener.location.reload(真)的工作,但它会提示用户重新发送信息。这种document.location.href = document.location.href;'不工作可能是因为它清除主网页上的表格。

Edit - Using window.opener.location.reload(true) does work, but it prompts the user to resend information. This 'document.location.href = document.location.href;' does not work either because it clears the form on the main page.

推荐答案

对于自由的UpdatePanel的解决方案,你可以有弹出返回一个值到文本字段,并在变化的文本字段回发。

For an updatepanel-free solution, you can have the popup return a value to a text field, and make that text field postback on change.

这篇关于从弹出导致回发到不同的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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