FCKeditor在asp.net中的使用
程序员文章站
2022-05-31 08:11:26
1.引入FredCK.FCKeditorV2.dll文件
2.在aspx页面中托人
Java代码&nb...
1.引入FredCK.FCKeditorV2.dll文件
<!--StartFragment -->
2.在aspx页面中托人
Java代码
<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server">
</FCKeditorV2:FCKeditor>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
3.把下载的FCK中的fckeditor这个文件夹全部放入项目中
4.修改Web.config文件//www.heatpress123.net
Java代码
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<span style="background-color: #ff0000;"><httpRuntime requestValidationMode="2.0"/>
<pages validateRequest="false"/></span>
</system.web>
<span style="background-color: #ff0000;"><appSettings>
<add key="FCKeditor:UserFilesPath" value="/upload"/>
</appSettings></span>
</configuration>
5.修改fckeditor文件夹下的fckconfig.js
Java代码
var _FileBrowserLanguage = '<span style="background-color: #ff0000;">aspx</span>' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = '<span style="background-color: #ff0000;">aspx</span>' ; // asp | aspx | cfm | lasso | perl | php | py
6.修改fckeditor\editor\filemanager\connectors\aspx文件夹下的config.ascx
Java代码
private bool CheckAuthentication()
{
return<span style="background-color: #ff0000;"> true</span>;
}
Java代码 :
public override void SetConfig()
{
// SECURITY: You must explicitly enable this "connector". (Set it to "true").
Enabled = CheckAuthentication();
// URL path to user files.
UserFilesPath = <span style="background-color: #ff0000;">"/upload</span>/";
到此,上传图片的问题就可以解决了!!!
<!--StartFragment -->
2.在aspx页面中托人
Java代码
<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server">
</FCKeditorV2:FCKeditor>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
3.把下载的FCK中的fckeditor这个文件夹全部放入项目中
4.修改Web.config文件//www.heatpress123.net
Java代码
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<span style="background-color: #ff0000;"><httpRuntime requestValidationMode="2.0"/>
<pages validateRequest="false"/></span>
</system.web>
<span style="background-color: #ff0000;"><appSettings>
<add key="FCKeditor:UserFilesPath" value="/upload"/>
</appSettings></span>
</configuration>
5.修改fckeditor文件夹下的fckconfig.js
Java代码
var _FileBrowserLanguage = '<span style="background-color: #ff0000;">aspx</span>' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = '<span style="background-color: #ff0000;">aspx</span>' ; // asp | aspx | cfm | lasso | perl | php | py
6.修改fckeditor\editor\filemanager\connectors\aspx文件夹下的config.ascx
Java代码
private bool CheckAuthentication()
{
return<span style="background-color: #ff0000;"> true</span>;
}
Java代码 :
public override void SetConfig()
{
// SECURITY: You must explicitly enable this "connector". (Set it to "true").
Enabled = CheckAuthentication();
// URL path to user files.
UserFilesPath = <span style="background-color: #ff0000;">"/upload</span>/";
到此,上传图片的问题就可以解决了!!!
上一篇: 吃大葱上火吗,它竟然还有这种好处
下一篇: 鹌鹑蛋有什么营养