ASP.Net程式中调用FCKeditor接口
来源:岁月联盟
时间:2008-04-27
在官方默认的版本中,FCKeditor是不支持asp.net的(没有供asp.net调用的接口),不过有一个供asp调用的接口,我根据fckeditor.asp这个文件用C#改写了一个.Net的接口,大家有需要可以参考。














































































































使用方法:
<%string sBasePath = Request.ServerVariables["PATH_INFO"];
FCKeditor oFCKeditor = new FCKeditor();
FCKeditor.BasePath = "./FCKeditor/";
FCKeditor.Width = "100%";
FCKeditor.Height = "400";
FCKeditor.ToolbarSet = "Basic";
FCKeditor.Create("body");
%>
此外,这个编辑器的asp.net用的文件上传和浏览程序也是没有的,不过可以在配置文件里把asp设置为默认脚本语言就行了,一般支持asp.net的服务器都支持asp的,不过asp.net的程序就不可能直接调用asp的类了,因此我编写了这个接口。
");




































































































下一篇:身份证函数 查看身份证地区信息