单击链接时我需要弹出窗口.但是在页面加载中,弹出窗口显示在页面底部.我希望它仅在单击链接时显示.我在哪里做错了?请帮帮我们!我是学习者.非常感谢!
<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>
解决方法
尝试改变
<asp:Panel ID="pnlPagePopup" Style="display: none;" runat="server" >
至
<asp:Panel ID="pnlPagePopup" Visible="false" runat="server" >
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。