【问题标题】:UpdatePanel does not have a public property named 'TextBox'.UpdatePanel 没有名为“TextBox”的公共属性。
【发布时间】:2011-10-16 08:43:36
【问题描述】:

我希望使用 asp:updatepanel 更新面板的内容。 我在页面上收到一条错误消息:DotNetNuke.Services.Exceptions.ModuleLoadException: Type 'System.Web.UI.UpdatePanel' does not have a public property named '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>

【问题讨论】:

  • 我们需要查看您的代码隐藏

标签: asp.net asp.net-ajax dotnetnuke


【解决方案1】:

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

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

adef web server site here 中还有一个完整的部分可能会有所帮助。

【讨论】:

    猜你喜欢
    • 2012-07-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多