当链接被点击时弹出窗口

4

当单击链接时,我需要一个弹出窗口。但在页面加载时,弹出窗口会显示在页面底部。我希望它只在单击链接时显示。我做错了什么?请帮帮我!我是一名学习者。非常感谢!

<cc1:ConfirmButtonExtender DisplayModalPopupID="ModalPopupExtender4" ID="ConfirmButtonExtender4"
                runat="server" TargetControlID="lnkremoveloc" Enabled="False" OnClientCancel="RemoveLocations">
            </cc1:ConfirmButtonExtender>
            <cc1:ModalPopupExtender ID="ModalPopupExtender4" OkControlID="btnDisable" CancelControlID="btnCancel"
                BackgroundCssClass="modalBackground" PopupControlID="pnlRemove" TargetControlID="lnkremoveloc"
                runat="server">
            </cc1:ModalPopupExtender>
            <asp:Panel CssClass="modalPopup" ID="PnlRemove" runat="server">
                <!-- Common Popup Control Begin -->
                <table class="tblCommonPopup" width="400" cellpadding="0" cellspacing="0">

                <tr>
                    <td class="topLeft">
                    </td>
                    <td class="topMiddle">
                    </td>
                    <td class= "topRight">
                    </td>
                </tr>
                <tr>
                    <td colspan="5" class="middle" align="center">--%>
                        <!-- Content Area Begin -->
                        <table>
                            <tr>
                                <td colspan="1" style="padding-top: 10px;" title="Select">

                                </td>
                                <td colspan="4" style="padding-top: 10px;" title="Location Name">

                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="5">
                                    <input id="btnDisable" type="button" value="Disable" class="popupButton" />
                                    <input id="Cancel" type="button" value="Cancel" class="popupButton" />
                                </td>
                            </tr>
                        </table>
                        <!-- Content Area Ends -->
                    </td>
                </tr>
                <tr>
                    <td class="bottomLeft">
                    </td>
                    <td class="bottomMiddle">
                    </td>
                    <td class="bottomRight">
                    </td>
                </tr>
            </table>
            <!-- Common Popup Control End -->
       </asp:Panel>

你好, 请发布整个页面的代码,现在被截断了。 - Woworks
由于字符限制,我无法在此处发布整个代码。是否有其他选项,例如电子邮件? - challengeAccepted
你可以使用http://pastie.org/来分享你的代码。 - Woworks
我把它粘在那里了!! 1075108 请帮帮我...谢谢! - challengeAccepted
3个回答

1
尝试更改。
<asp:Panel ID="pnlPagePopup" Style="display: none;" runat="server" >

<asp:Panel ID="pnlPagePopup" Visible="false" runat="server" >

0
希望您的页面/样式表中有modalBackground的CSS?

0

Woworks是正确的,当单击链接时设置pnlPagePopup.Visible = true;


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接