我正在尝试添加一个HTMLEditorExtender控件到我的网页上。
在ASPX中,我有以下代码片段:
<ajaxToolkit:HtmlEditorExtender ID="test" runat="server"/>当我尝试构建我的项目时,我得到以下编译警告:The type or namespace name 'HTMLEditorExtender' does not exist in the namespace 'AjaxControlToolkit'(Are you missing an assembly reference?)
在我的代码后台(C#)中,我尝试包含以下使用。
using AjaxControlToolkit.HTMLEditor;但是我得到了相同的构建错误。
我一直在使用这个网站作为参考:http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/HTMLEditor/HTMLEditor.aspx我是不是遗漏了什么?
此外,intellisense (我使用的是Microsoft Visual Studios 2012)不会拾取HTMLEditor控件,但它会拾取AjaxControlToolkit中的其他控件,如accordian……
发布于 2012-12-04 06:57:09
我意识到我在我的aspx页面的页眉有错误的寄存器。在我的ASPX页面顶部包含了以下内容,并且它起作用了:
<%@ Register
Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit.HTMLEditor"
TagPrefix="HTMLEditor" %>https://stackoverflow.com/questions/13692275
复制相似问题