简体   繁体   English

值不能为空。 参数名称:控制

[英]Value cannot be null. Parameter name: control

        <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>

That error means that there's a Dependency Property that has a null value where one is not allowed. 该错误意味着存在一个Dependency属性,该属性的值为null,不允许其中一个值。 Unfortunately you only pasted partial code so I can't tell which property it is - please paste the full code of your control. 不幸的是,您仅粘贴了部分代码,因此我无法知道它是哪个属性-请粘贴您​​控件的完整代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM