如何解决modalpopupextender的问题 [英] How do I resolve an issue with modalpopupextender

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

问题描述

我的aspx页面上有以下代码段:



I have the following snippet on my aspx page:

<td>
   <asp:DropDownList ID="ddlChildOrder" runat="server"></asp:DropDownList>
     
   <asp:Button ID="btnBullets" runat="server" Text="Bullets" />
   <asp:Button ID="btnLinks" runat="server" Text="Links" />
   <asp:Button ID="btnText" runat="server"  OnClick="btnText_OnClick" Text="Text" />
   <asp:Button ID="btnVideos" runat="server"   Text="Videos" />
   <ajx:ModalPopupExtender ID="ModalPopupVideo" PopupControlID="panelVideo"
                      TargetControlID="btnVideos" CancelControlID="btnCloseVideoPanel"
                      BackgroundCssClass="modalBackground" runat="server" />
</td>





及其应该弹出的面板在页面上显示:





and the panel it should popup is further down on the page:

asp:Panel Width="1500" Height="250" ID="panelVideo"  runat="server">
     <div class="modal-content">
        <div class="modal-header">
           <asp:Button ID="btnCloseVideoPanel" Text="X" CssClass="closeWin"  runat="server" />
     <h2>
       <asp:Label ID="lblTitle" Text="Videos" runat="server"></asp:Label>
     </h2>
     </div>
.....





为什么我收到此错误?

TargetControlID' '无效。该值不能为null或为空。



该物业被分配到一个现有的按钮。事实上,该物业的智能感知将其列为一个选项



我尝试了什么:



谷歌搜索我的大脑受到了很大的伤害



why an I getting this error?
TargetControlID of '' is not valid. The value cannot be null or empty.

the property is assigned to an existing button., In fact intellisense for the property listed it as an option

What I have tried:

So much googling my brain hurts

推荐答案

没关系错误是
validatorcalloutextender

我盲目地粘贴到我的代码而不理解它的用法

which I blindly pasted in to my code without understanding it's use


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

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