我想使用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还有一个完整的部分可以提供帮助.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。