ModalPopUpExtender FireFox问题,按钮事件未触发...在IE中有效,解决方案? [英] ModalPopUpExtender FireFox issue, button event not firing... works in IE, solutions?

查看:44
本文介绍了ModalPopUpExtender FireFox问题,按钮事件未触发...在IE中有效,解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我有一个gridview.我在

Hi All

I have a gridview.I am calling the modalpopup in

gvCourse_OnRowCommand

这个事件中调用modalpopup.modal弹出窗口完美显示.但是当我单击

this event.The modal popup displays perfectly. But when i click the

btnOk_ActiveDeactiveCoursePopup

时,该事件在IE中触发,但在Firefox中不触发.您能帮帮我吗. 紧急发布.

问候
froxy






the event fires in IE but not in firefox.Can you help me. It is urgent for release.

Regards
froxy






<asp:Panel ID="pnlActiveDeactiveCourse" runat="server" class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-draggable "

    Width="600px" Style="display: none;" DefaultButton="btnCancel_ActiveDeactiveCoursePopup">
    <asp:UpdatePanel ID="udpActiveDeactiveCourse" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Button ID="btnDummy_ActiveDeactiveCoursePopup" runat="server" Style="display: none" />
            <cc1:ModalPopupExtender ID="MPActiveDeactiveCourse" BehaviorID="MPActiveDeactiveCourse"

                runat="server" TargetControlID="btnDummy_ActiveDeactiveCoursePopup" PopupControlID="pnlActiveDeactiveCourse"

                BackgroundCssClass="modalBackground" X="300" Enabled="True" PopupDragHandleControlID="pnlActiveDeactiveCourse">
                <Animations>
                <OnShown>
                    <Sequence>
                        <Parallel Duration=".2" Fps="25" >
                            <FadeIn />
                        </Parallel>
                    </Sequence>
                </OnShown>
                <OnHiding>
                    <Sequence>
                        <Parallel Duration=".2" Fps="25">
                            <FadeOut />
                        </Parallel>
                    </Sequence>
                </OnHiding>
                </Animations>
            </cc1:ModalPopupExtender>
            <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                <asp:Label ID="lblCaption_ActiveDeactiveCoursePopup" class="ui-dialog-title" runat="server"></asp:Label><a

                    href="#" onclick="$find('MPActiveDeactiveCourse').hide(); return false;" class="ui-dialog-titlebar-close ui-corner-all"

                    role="button"><span class="ui-icon ui-icon-closethick">close</span></a></div>
            <div id="Div5" class="ui-dialog-content ui-widget-content" runat="server">
                <div>
                    <%--<UC:Message ID="msgStatus" runat="server" />--%>
                    <asp:Label ID="lblConfirmation" runat="server"></asp:Label>
                </div>
            </div>
            <div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
                <div class="ui-dialog-buttonset">
                    <asp:Button ID="btnOk_ActiveDeactiveCoursePopup" runat="server" CausesValidation="false"

                        SkinID="JQBtn" OnClick="btnOk_ActiveDeactiveCoursePopup_Click" />
                    <asp:Button ID="btnCancel_ActiveDeactiveCoursePopup" runat="server" Text="Cancel"

                        OnClientClick="$find('MPActiveDeactiveCourse').hide();return false;" SkinID="JQBtn" />
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Panel>

推荐答案

find('MPActiveDeactiveCourse').hide();返回false;" class ui-dialog-titlebar-close ui-corner-all" span> 角色 =" > < span ui-icon ui-icon-closethick" < /span > < > /div < div =" Div5" ui对话框-content ui-widget-content" runat =" > < div > <%-< UC:消息ID = " msgStatus" runat = 服务器"/>-< asp:Label ID =" runat 服务器" < > < /div > < /div > < div =" ui-dialog-buttonpane ui-widget-content ui-helper- clearfix" > < div =" ui-dialog-buttonset" > < asp:Button ID =" runat 服务器" CausesValidation false" SkinID =" OnClick =" btnOk_ActiveDeactiveCoursePopup_Click" ">/ > < asp:Button ID =" runat 服务器" 文本 取消" span> OnClientClick ="
find('MPActiveDeactiveCourse').hide(); return false;" class="ui-dialog-titlebar-close ui-corner-all" role="button"><span class="ui-icon ui-icon-closethick">close</span></a></div> <div id="Div5" class="ui-dialog-content ui-widget-content" runat="server"> <div> <%--<UC:Message ID="msgStatus" runat="server" />--%> <asp:Label ID="lblConfirmation" runat="server"></asp:Label> </div> </div> <div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"> <div class="ui-dialog-buttonset"> <asp:Button ID="btnOk_ActiveDeactiveCoursePopup" runat="server" CausesValidation="false" SkinID="JQBtn" OnClick="btnOk_ActiveDeactiveCoursePopup_Click" /> <asp:Button ID="btnCancel_ActiveDeactiveCoursePopup" runat="server" Text="Cancel" OnClientClick="


find('MPActiveDeactiveCourse').hide(); return false;" SkinID =" / < /div > < /div > < /ContentTemplate > < /asp:UpdatePanel > < /asp:Panel >
find('MPActiveDeactiveCourse').hide();return false;" SkinID="JQBtn" /> </div> </div> </ContentTemplate> </asp:UpdatePanel> </asp:Panel>


试试这个

将触发标签放置在更新面板中
喜欢..

Try this one

Place trigger tag in update panel
like..

<asp:updatepanel id="UpdatePanel" runat="server" xmlns:asp="#unknown">
<Triggers>
    <asp:PostBackTrigger ControlID="your button id" />
    </Triggers>
</asp:updatepanel>


这篇关于ModalPopUpExtender FireFox问题,按钮事件未触发...在IE中有效,解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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