modalpopup扩展器的问题 [英] problem with modalpopup extender

查看:82
本文介绍了modalpopup扩展器的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个modalpopup扩展程序..我在gridview中有2个链接按钮,我想在两个链接按钮上调用相同的modalpopup只有一个更改,就像我想在同一扩展器上显示不同的数据,我们可以使用2面板一个modalpopup扩展器?我们可以显示和隐藏那些面板吗?我们可以在一个按钮上同时调用2个modalpopup吗?.plz帮帮我?

i have one modalpopup extender..i have 2 link button in gridview bt i want to call same modalpopup on both link button only one change there like i want show different data on both from same extender and can we use 2 panel in one modalpopup extender?and can we show and hide those panel?and can we call 2 modalpopup at same time on one button click?.plz help me?

推荐答案

hi ,

a)点击按钮首先隐藏模态弹出窗口

b)更改模态弹出窗口的目标控件ID

c)show modal popup。

a) On button click first hide modal popup
b) Change target control id of modal popup
c) show modal popup.


您可以使用javascript显示弹出窗口。试试这个:

Javascript:

You can show your popup using javascript. Try this:
Javascript:
function fnShowPopup(sender) {
    var popup = document.getElementById('ModelPopup1');
    if (sender.id == "Button1") {
        popup.show();
        //Put your changes for first button click
    }
    else {
        popup.show();
        //Put your changes for second button click
    }
}



HTML:


HTML:

<asp:button id="Button1" runat="server" autopostback="false" onclick="fnShowPopup(this)" xmlns:asp="#unknown" />
<asp:button id="Button2" runat="server" autopostback="false" onclick="fnShowPopup(this)" xmlns:asp="#unknown" />







--Amit




--Amit


这里有一些可能有帮助的链接..



http://stackoverflow.com/questions/13259195/双模式弹出窗口在一个aspx页面中[ ^ ]

http://stackoverflow.com/questions/12849397/modalpopupextender-with-three-panels [ ^ ]
Here is some link''s that may help ..

http://stackoverflow.com/questions/13259195/two-modal-popups-in-one-aspx-page[^]
http://stackoverflow.com/questions/12849397/modalpopupextender-with-three-panels[^]


这篇关于modalpopup扩展器的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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