1

我正在开发 ASP.NET 应用程序,并且我有一个带有 asp:button 的模态弹出对话框。我在 Windows 7 x86 平台上开发我的应用程序,在那里,单击此按钮可以正常工作。但是当我在 Windows 7 x64 平台上部署完全相同的代码时,在模式弹出窗口中单击此按钮不起作用。有人知道我错过了什么吗?

这是我正在展示的 Panel 和用来展示它的 ModalPopupExtender。

<asp:ModalPopupExtender runat="server" ID="Extender_ConfirmChange" 
    PopupControlID="Panel_ConfirmChange" 
    TargetControlID="HiddenFieldChange" 
    BackgroundCssClass="modalBackground" 
    Drag="True" 
    PopupDragHandleControlID="LegendChange" 
    OkControlID="BtnYes_ConfirmChange" 
    CancelControlID="BtnNo_ConfirmChange" 
    DynamicServicePath="" Enabled="True">
</asp:ModalPopupExtender>

<asp:HiddenField ID="HiddenFieldChange" runat="server" />

<asp:Panel runat="server" ID="Panel_ConfirmChange" Height="100px" Width="400px"      style="display: none">

    <div id="Div1" runat="server" class="UserData">

        <fieldset class='UserPanel'>

            <legend id="LegendChange" class="CursorCorrector">
                <asp:Label ID="LabelChange" runat="server" meta:resourcekey="ChangeResource"></asp:Label>
            </legend>                    

            <asp:Panel runat="server" BackColor="White" >

                <asp:Table runat="server">
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Image ID="img" ImageUrl="../Images/Shield_Yellow32.png" runat="server" 
                                meta:resourcekey="imageChangeResource" style="padding-right:8px"/>
                        </asp:TableCell>
                        <asp:TableCell>
                            <asp:Label ID="lblChange" runat="server" meta:resourcekey="lblChangeResource" ></asp:Label>    
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>

                <br />
                <br />

                <div class="button">
                    <asp:Button ID="BtnYes_ConfirmChange" runat="server" 
                        OnClick="BtnYes_ConfirmChange_OnClientClick" UseSubmitBehavior="False" 
                        Width="70px" meta:resourcekey="BtnYes_ConfirmChangeResource"/>
                    <asp:Button ID="BtnNo_ConfirmChange" runat="server" Width="70px" 
                        OnClick="BtnNo_ConfirmChange_OnClientClick" 
                        meta:resourcekey="BtnNo_ConfirmChangeResource"/>
                    <asp:Button ID="BtnCancel_ConfirmChange" runat="server" Width="70px" 
                        OnClick="BtnCancel_ConfirmChange_OnClientClick" 
                        meta:resourcekey="BtnCancel_ConfirmChangeResource"/>
                </div>
            </asp:Panel>

        </fieldset>

    </div>

</asp:Panel>
4

0 回答 0