asp.net FckeditorÅäÖÃ
Ò»¡£ÏÂÔص¼ÈëÏîÄ¿
£¨1£©Ê×Ïȵ½http://ckeditor.com/downloadÏÂÔØFCKeditor 2.6.5,ºÍFCKeditor.Net 2.6.3,
È»ºó½âѹÕâÁ½¸öÎļþ¼Ð
FCKeditor±à¼Æ÷£¬µÃµ½Îļþ¼Ðfckeditor£¬¸´ÖÆ´ËÎļþ¼Ðµ½WebÓ¦ÓõÄÏîÄ¿Ï£¨Ò²¿ÉÒÔÊÇ×ÓËïĿ¼Ï£©¡£
½âѹFCKeditor¿Ø¼þ£¬ÔÚÆä×ÓĿ¼bin/Release/2.0ÏÂÓÐÒ»¸ö³ÌÐò¼¯¡£ÔÚWebÓ¦ÓõÄÏîÄ¿ÖÐÒýÓøóÌÐò¼¯¡£
£¨2£©¼¯³Éµ½Visual Studio¹¤¾ßÏä
´ò¿ªÒ»ASP.NETÒ³Ã棬չ¿ªToolbox£¬´ò¿ªÓÒ¼ü²Ëµ¥£¬Ñ¡Ôñ“Choose Items ...”£¬ÔÚ³öÏֵēChoose Toolbox Items”»á»°¿òµÄ“.NET Framework Components”Ñ¡ÏÖÐÑ¡Ôñ“Browse”£¬ÕÒµ½²¢Ñ¡ÖÐFCKeditor³ÌÐò¼¯£¬´ò¿ªºó»Øµ½“Choose Toolbox Items”´°¿Ú£¬µã»÷“OK”£¬Íê³É¿Ø¼þµ¼Èë¡£
Õâʱ£¬ÔÚToolboxµÄGeneral·ÖÀàϳöÏÖÁËÒ»¸öÃûΪFCKeditorµÄ¿Ø¼þ£¬¿ÉÒÔÏñʹÓÃVisual StudioÄÚÖÿؼþÒ»ÑùʹÓÃËü¡£
£¨3£©½«FCKeditor±à¼Æ÷Îļþ×éASP.NET»¯
FCKeditor±à¼Æ÷Îļþ×é°üº¬ÁËÓÃÓÚËüËùÖ§³ÖµÄ¸÷ÖÖÓ¦Óü¼ÊõµÄÎļþ£¬ËùÒÔ£¬¶ÔÓÚASP.NETÓ¦ÓÃÀ´Ëµ£¬ÓкܶàÎļþÊDz»ÐèÒªµÄ¡£
¸ùĿ¼Ï£¬Ö»±£ÁôÎļþ¼Ðeditor£¬Îļþfckconfig.js¡¢fckeditor.js¡¢fckpackager.xml¡¢fckstyles.xmlºÍfcktemplates.xml¡£
×ÓĿ¼editor/filemanager/connectorsÏ£¬Ö»±£ÁôÎļþ¼Ðaspx¡£
¶þ¡£web.configÅäÖãº
ÔÚÒ³ÃæÖУ¬Ê¹ÓõÄÊÇFCKeditor¿Ø¼þ£¬¸Ã¿Ø¼þÐèÒªÖªµÀFCKeditor±à¼Æ÷Îļþ×éµÄ·¾¶¡£ÓÐÁ½ÖÖÅäÖ÷½·¨¡£
ÔÚappSettingsÅäÖýÚÖмÓÈë
<add key="FCKeditor:BasePath" value="~/PathOfFCKeditor/" />
ʹÓÃÕâÖÖÅäÖ÷½·¨ºó£¬¶ÔÓÚÏîÄ¿ÖÐÈκÎÒ»¸öÒ³ÃæÖÐÓõ½µÄFCKeditor¿Ø¼þ£¬¶¼²»ÓÃÔÙÅäÖÃÆäBasePathÊôÐÔ¡£
Ö±½Ó¶ÔÓõ½µÄFCKeditor¿Ø¼þ½øÐÐÅäÖÃ
ÔÚÒ³Ãæ´úÂëÖÐÉèÖÃFCKeditorµÄÊôÐÔBasePathΪFCKeditor±à¼Æ÷Îļþ×éµÄ·¾¶£¬»òÕßÔÚPage_Initʼþ´¦ÀíÆ÷ÖÐÉèÖÃÆäBasePathµÄÖµ¡£
ÅäÖÃFCKeditor±à¼Æ÷ÎļþÉÏ´«Â·¾¶
ÔÚweb.configµÄappSettingsÅäÖýÚÖмÓÈë
<add key="FCKeditor:UserFilesPath" value="~/YourUploadFilePat
Ïà¹ØÎĵµ£º
»ñÈ¡ÇëÇóµÄÒ³µÄ HttpRequest ¶ÔÏó¡£
Ò»¡¢HttpRequest Àà
ʹ ASP.NET Äܹ»¶ÁÈ¡¿Í»§¶ËÔÚ Web ÇëÇóÆڼ䷢Ë굀 HTTP Öµ¡£
ÏÂÃæµÄ´úÂëʾÀýʹÓà StreamWriter ÀཫÈô¸É HttpRequest ÀàÊôÐÔÖµµÄֵдÈëÎļþ¡£¶ÔÓÚÊÇ×Ö·û´®ÀàÐ͵ÄÊôÐÔ£¬ÊôÐÔÖµ±»Ð´ÈëÎļþʱ½«±»±àÂëΪ HTML¡£±íʾ¼¯ºÏµ ......
² Oracle9iµÄ°²×°£¬Çë²ÎÕÕ¹Ù·½µÄ°²×°ËµÃ÷¡£
² Oracle9i°²×°³É¹¦ÒÔºó£¬Ê¹ÓùÜÀíÔ±£¨Óû§Ãû£ºsys¡¢ÃÜÂ룺sys£©µÄÉí·ÝµÇ¼½øÈ¥£¬´´½¨Ò»¸öÓû§ddymis£¬ÃÜÂ룺ddymis,½ÇɫĬÈϸ³Óèdba¡£
² ......
дͼƬc:\1.jpgµ½±ícinfoÖÐ
private static void AddCinfo()
{
string strSql = "insert into cinfo (srvtitle,csttitle,introduction,logo) values
(@srvtitle,@csttitle,@introduction,@logo)";
S ......
×¢Òâ:
ÔÚʹÓÃFindControlʱ,Ò»¶¨ÒªÔÚ×îÌù½ü²éÕÒ¶ÔÏóµÄÍâ±ß¼ÓÉϸöÈÝÆ÷,Èç¹ûÄãÖ±½ÓÓÃthis.FindControl,»òPage.FindControlÄÇô¾Í»á¾³£³öÏÖ佫¶ÔÏóÉèÖõ½ÊµÀý
µÄ´íÎó,ËùÒÔ×îºÃ¼ÓÒ»¸öÈÝÆ÷,ÄÇôÕâÀï¼ÓµÄDIV¾ÍÊÇÒ»¸öÈÝÆ÷,ΪÁËÈÃFindControlÔÚIDΪ"TextBoxs"µÄDIVÄÚÈ¥ÕÒÃûΪcom1,com2,com3µÄTextBOx;
<div ......
///<summary>
///±¸·ÝÊý¾Ý¿âµ½±¾µØ´ÅÅÌ
///</summary>
public bool BackUp(string BackUpFile)
{
try
&nbs ......