如何将响应发送回ASP.Net中的页面 [英] How to send back response to a page in ASP.Net

查看:102
本文介绍了如何将响应发送回ASP.Net中的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有按钮的页面(页面A),当单击此按钮时,另一页面(页面B)将在新窗口中打开。页面B上有两个按钮。单击按钮时,此表单将关闭但是我想刷新(页面A),具体取决于单击的按钮(页面B)。两者都是asp.Net页面。如何判断(页面A)单击了哪个按钮(页面B)。

I had a Page (Page A) with a button, when this button is clicked another page (Page B) opens in a a new window. There are two buttons on Page B. what ever button is clicked this form will close But I want to refresh (Page A) depending on which button was clicked on (Page B). Both are asp.Net pages. How can I tell (Page A) that which button was clicked on (Page B).

推荐答案

在用于关闭页面B的JavaScript中,设置window.returnValue和然后在表单A中调用JavaScript检查返回值。
In the JavaScript for closing the Page B you set window.returnValue and then the calling JavaScript in Form A checks the return value.


您好,请检查这些链接





http://www.aspsnippets.com /Articles/Refresh-Parent-window-from-Child-window-on-close-using-JavaScript.aspx [ ^ ]



http:// forums.asp.net/t/1064839.aspx?Refresh+reload+a+page+by+clicking+a+button+in+another+page [ ^ ]



http://dotnetspidor.blogspot.in/ 2011/07 / refresh-parent-page-from-child-window.html [ ^ ]



http://geekswithblogs.net/czumbano/archive/2006/04/25/76301.aspx [ ^ ]
hi check these links


http://www.aspsnippets.com/Articles/Refresh-Parent-window-from-Child-window-on-close-using-JavaScript.aspx[^]

http://forums.asp.net/t/1064839.aspx?Refresh+reload+a+page+by+clicking+a+button+in+another+page[^]

http://dotnetspidor.blogspot.in/2011/07/refresh-parent-page-from-child-window.html[^]

http://geekswithblogs.net/czumbano/archive/2006/04/25/76301.aspx[^]


这篇关于如何将响应发送回ASP.Net中的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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