当前位置: 代码迷 >> 综合 >> FreeTextBox 上传到虚拟主机上提示错误,且无法显示图片的解决办法。
  详细解决方案

FreeTextBox 上传到虚拟主机上提示错误,且无法显示图片的解决办法。

热度:22   发布时间:2023-12-21 23:30:45.0

FreeTextBox上传到虚拟主机后,FreeTextBox出现以下错误,且图片无法显示 。

FreeTextBox has not been correctly installed. To install FreeTextBox either:
(1) add a reference to FtbWebResource.axd in web.config:
<system.web>
<httpHandlers>
<add verb="GET"
path="FtbWebResource.axd"
type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />
</httpHandlers>
</system.web>

(2) Save the FreeTextBox image and javascript files to a location on your website and set up FreeTextBox as follows
<FTB:FreeTextBox id="FreeTextBox1" SupportFolder="ftbfileslocation" JavaScriptLocation="ExternalFile" ButtonImagesLocation="ExternalFile" ToolbarImagesLocation="ExternalFile" ButtonImagesLocation="ExternalFile" runat="server" />

 

解决方法: 在下载的FreeTextBox包里有aspnet_client下的FreeTextBox文件,把这个FreeTextBox文件夹上传到服务器的根目录下,然后再设置:<FTB:FreeTextBox ID="txtContent" runat="server" SupportFolder="~/FreeTextBox"   JavaScriptLocation="ExternalFile"   ButtonImagesLocation="ExternalFile"   ToolbarImagesLocation="ExternalFile"  >                      </FTB:FreeTextBox>

既可。

  相关解决方案