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>
既可。