我想使用asp:updatepanel更新面板的内容.
我在页面上收到错误消息:DotNetNuke.Services.Exceptions.ModuleLoadException:Type’System.Web.UI.UpdatePanel’没有名为’TextBox’的公共属性.
我在页面上收到错误消息: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还有一个完整的部分可以提供帮助.