如何使用按钮单击关闭弹出窗口? [英] How to close the popup window using the button click?
本文介绍了如何使用按钮单击关闭弹出窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,
告诉我使用asp.net c#中的按钮单击关闭弹出窗口的步骤。请给我解决这个问题的解决方案。
Hi sir,
Tell me the steps to close the popup window using the button click in asp.net c#. Kindly give me the solution for
this problem.
推荐答案
哪种弹出窗口?
1.将以下字符串发送到需要关闭的窗口。
< a href =javascript:window.close( )>< / a>
然后让窗口响应此字符串。
2 。点击链接
http: //go4answers.webhost4life.com/Example/close-pop-refresh-main-page-popup-close-84434.aspx [ ^ ]
which kind is the popup window?
1.post the following string to the window that need to be closed .
<a href="javascript:window.close()"></a>
then let the window response this string .
2.click the link
http://go4answers.webhost4life.com/Example/close-pop-refresh-main-page-popup-close-84434.aspx[^]
你可以拥有这个:
btnSave.Attributes.Add(OnClick,Javascript:self.close(););
You can have this:
btnSave.Attributes.Add("OnClick", "Javascript:self.close();");
使用javascript关闭弹出窗口按钮点击非常e asy
using javascript closing popup window on button click is very easy
<asp:button id="btnid" runat="server" onclientclick="window.close();" xmlns:asp="#unknown" />
这篇关于如何使用按钮单击关闭弹出窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文