未知的服务器标签

未知的服务器标签

本文介绍了未知的服务器标签“ajaxToolkit:HtmlEditorExtender"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 ajaxcontrols 并且所有控件都运行良好但我没有找到任何名为 HtmlEditorExtender 的控件,所以我只是在 .html 页面中复制了这个标签

这里工作正常,但问题出现在 ,然后我下载了 Nuget.tool 阅读了一些问题像我一样面对,但仍然无法正常工作

我该怎么办?

我的 Web.config 文件是

 <system.web><编译调试="true" targetFramework="4.0"/><控制><add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/></控制><sanitizer defaultProvider="AntiXssSanitizerProvider"><提供者><add name="AntiXssSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"/></提供者></消毒剂></页面></system.web></配置>
解决方案

add <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="Server"/>

 

在您的 web.config 中添加以下标签

<system.web><编译调试="true" targetFramework="4.0"/><控制><add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/></控制></页面>

并在页面中

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

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>
解决方案

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">

这篇关于未知的服务器标签“ajaxToolkit:HtmlEditorExtender"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 02:05