加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – UpdatePanel没有名为’TextBox’的公共属性.

发布时间:2020-12-16 04:25:41 所属栏目:asp.Net 来源:网络整理
导读:我想使用asp:updatepanel更新面板的内容. 我在页面上收到错误消息:DotNetNuke.Services.Exceptions.ModuleLoadException:Type’System.Web.UI.UpdatePanel’没有名为’TextBox’的公共属性. 见下面的代码: asp:ScriptManager runat="server" ID="ScriptM
我想使用asp:updatepanel更新面板的内容.
我在页面上收到错误消息:DotNetNuke.Services.Exceptions.ModuleLoadException:Type’System.Web.UI.UpdatePanel’没有名为’TextBox’的公共属性.

见下面的代码:

<asp:ScriptManager runat="server" ID="ScriptManager" />
    <asp:UpdatePanel runat="server" ID="brandAddingContainer" Visible="false">
        <ContentTemplate>
            <asp:LinkButton runat="server" ID="brandAddingPrompt">
                <img src="/images/add.gif" alt="Add New Brand" onclick="addNewBrand_clicked"/> Add New Brand
            </asp:LinkButton>

            <asp:Panel ID="sendNewBrand" runat="server">
                <asp:TextBox runat="server" ID="newBrandName"></asp:TextBox>
                <asp:Button runat="server" ID="sendBrandName" Text="Add Brand" OnClick="sendNewBrand_clicked" />
                <asp:Label runat="server" ID="insertionFeedback" Visible="false" />
            </asp:Panel>
        </ContentTemplate>

        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="brandAddingPrompt" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>

解决方法

不建议在模块控件中使用ScriptManager,我建议从模块代码中删除ScriptManager,并在模块控件定义中使用Enable Prtial Rendering复选框.

您使用的是什么版本的.net框架和dnn?尝试安装ajax扩展安装?

在adef web server site here还有一个完整的部分可以提供帮助.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读