本文介绍了类型或名称空间名称“ HtmlEditorExtender”在名称空间“ AjaxControlToolkit”中不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <form id="form1" runat="server">
     <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager><ajaxToolkit:ToolkitScriptManagerID="ToolkitScriptManager1"runat="server">
</ajaxToolkit:ToolkitScriptManager>
    <asp:TextBox ID="TxtEditor" runat="server"/>
        <ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="TxtEditor">
        </ajaxToolkit:HtmlEditorExtender>
    <br/>
    <asp:Button runat="server" Text="Submit" OnClick="Submit"/>

</form>





protected global::AjaxControlToolkit.HtmlEditorExtender HtmlEditorExtender1;





<?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
   <sectionGroup name="system.web">
    <section name="sanitizer" requirePermission="false" type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
</sectionGroup>
 <section name="ajaxControlToolkit" type="AjaxControlToolkit.AjaxControlToolkitConfigSection, AjaxControlToolkit" /></configSections>
 <system.web>

<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<compilation debug="true" targetFramework="4.0">
  <assemblies>
    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
  </assemblies>
</compilation>
<sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">
  <providers>
    <add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add>
  </providers>
</sanitizer>

  <pages>
  <controls>
    <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
  </controls>
</pages></system.web>
<ajaxControlToolkit htmlSanitizer="AjaxControlToolkit.HtmlEditor.Sanitizer.DefaultHtmlSanitizer, AjaxControlToolkit.HtmlEditor.Sanitizer" />
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-1.0.20229.24049" newVersion="1.0.20229.24049" />
  </dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>




推荐答案

您使用 asp标记前缀注册 AjaxControlToolkit命名空间,但使用 ajaxToolkit前缀访问HtmlEditorExtender。
随处将其更改为 ajaxToolkit。

You register "AjaxControlToolkit" namespace with "asp" tag prefix, but access HtmlEditorExtender with "ajaxToolkit" prefix.Change it to "ajaxToolkit" everywhere.

这篇关于类型或名称空间名称“ HtmlEditorExtender”在名称空间“ AjaxControlToolkit”中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 03:51