UNKNOWN SERVER TAG “AJAXTOOLKIT:HTMLEDITOREXTENDER”

Tanuj Kumar

Total Post:134

Points:940
Posted by  Tanuj Kumar
 2244  View(s)
Ratings:
Rate this:

I am using ajaxcontrols and in that all controls are working well But I had not found any of the control named as HtmlEditorExtender so I had just copied this tag in .html page 

<%@ Register TagPrefix="ajaxToolkit" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="Server" />
<ajaxToolkit:HtmlEditorExtender TargetControlID="txtComments" runat="server" />
<asp:TextBox ID="txtComments" runat="server"></asp:TextBox>

here is working fine but the problem arises on , then i downloaded Nuget.tool on reading some of the problems facing just like me but still its not working 

what shall I do? 

My Web.config file is 

  <configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<pages>
  <controls>
    <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
  </controls>
  <sanitizer defaultProvider="AntiXssSanitizerProvider">
    <providers>
      <add name="AntiXssSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider" />
    </providers>
  </sanitizer>
</pages>
</system.web>
</configuration>
  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: Unknown server tag “ajaxToolkit:HtmlEditorExtender”

    Hi Tanuj, 


    add <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="Server" />
     
        <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="HTMLEditor" %>

    add folowing tag in your web.config 

    <configuration>
    <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <pages>
      <controls>
        <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
      </controls>
    </pages>

    and in page 

    <ajaxToolkit:HtmlEditorExtender ID="replyBody_HtmlEditorExtender" runat="server" Enabled="True" OnImageUploadComplete="saveFile"  ClientIDMode="AutoID" EnableSanitization="true"  TargetControlID="replyBody">

      Modified On Apr-06-2018 11:34:50 PM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!