开发者

UpdatePanel does not have a public property named 'TextBox'.

开发者 https://www.devze.com 2023-03-24 12:46 出处:网络
I\'m looking to update the contents of a panel using an asp:updatepanel. I get an error on the page saying: DotNetNuke.Services.Exceptions.ModuleLoadException: Type \'System.Web.UI.UpdatePanel\' does

I'm looking to update the contents of a panel using an asp:updatepanel. I get an error on the page saying: DotNetNuke.Services.Exceptions.ModuleLoadException: Type 'System.Web.UI.UpdatePanel' does not have a public property named 'TextBox'.

See code below:

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


Using ScriptManager in module controls is not advisable, I would suggest to remove ScriptManager from your module code and use Enable Prtial Rendering checkbox in module control definition.

What version of .net framework and dnn are you using? try installing ajax extensions installed?

there is also a an entire section in adef web server site here that can be helpful.

0

精彩评论

暂无评论...
验证码 换一张
取 消