gpt4 book ai didi

asp.net - UpdatePanel 没有名为 'TextBox' 的公共(public)属性。

转载 作者:行者123 更新时间:2023-12-02 15:40:28 27 4
gpt4 key购买 nike

我正在寻找使用 asp:updatepanel 更新面板的内容。我在页面上收到一条错误消息:DotNetNuke.Services.Exceptions.ModuleLoadException:类型“System.Web.UI.UpdatePanel”没有名为“TextBox”的公共(public)属性。

参见下面的代码:

    <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 中还有一整节。这可能会有所帮助。

关于asp.net - UpdatePanel 没有名为 'TextBox' 的公共(public)属性。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6880433/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com