如何在JS中调用mthod ... [英] How to call a mthod in JS ...
本文介绍了如何在JS中调用mthod ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Default.aspx中,为Default2.aspx定义了一个弹出窗口(id ='Iframe1')(参见下面的代码)
In the Default.aspx, a popup (id='Iframe1') is defined for Default2.aspx (see the code below)
<asp:Panel ID="Panl1" runat="server" CssClass="Popup" align="center" style = "display:none">
<iframe style=" width: 250px; height: 140px;" id="Iframe1" src="Default2.aspx" runat="server"></iframe>
<br/>
<asp:Button ID="btnLogin" runat="server" Text="Log In" onclick="btnLogin_Click"
ToolTip="Log In for Radio Outage Display" />
<ajaxToolkit:ModalPopupExtender ID="mp1" runat="server" PopupControlID="Panl1" TargetControlID="btnSignIn"
BackgroundCssClass="Background">
</ajaxToolkit:ModalPopupExtender>
<div>
<br />
<asp:Label ID="Label1" runat="server" Text="Label" Font-Size="Smaller" ForeColor="Blue"></asp:Label>
</div>
</asp:Panel>
在这段代码中,ModalPopupExtender定义为id =mp1。在后面的代码中,这个对象可以显示为
In this piece of code, a ModalPopupExtender is defined as id="mp1". In the code behind, this object can be displayed by
mp1.show()
现在我想要要做同样的事情,即使用JS调用mp1.show()。怎么做到呢?谢谢。
Now I want to do do the same thing, namely call mp1.show(), using JS. How can it be done? Thanks.
推荐答案
我用google搜索在javascript中显示modalpopupextender
http://weblogs.asp.net/ashicmahtab/how-to-show-hide-a-modalpopupextender -using-javascript [ ^ ]
如果您想自己谷歌,还有其他链接。
I googled "show modalpopupextender in javascript"
http://weblogs.asp.net/ashicmahtab/how-to-show-hide-a-modalpopupextender-using-javascript[^]
There are other links if you want to google for yourself.
这篇关于如何在JS中调用mthod ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文