asp.net mvcÖÐckeditor+ckfinderµÄÅäÖ÷½·¨
¿ªÔ´ÍøÒ³±à¼Èí¼þFCKEditorÔÚ09Äê·¢²¼¸üе½3.0£¬²¢¸ÄÃûΪCKEditor¡£¸Ä½øºóµÄckeditor¸ü¼ÓÄ£¿é»°£¬ÅäÖøü¼ÓÁé»î£¬ºÍÒÔÇ°µÄfckeditorʹÓ÷½Ê½ÉÏÒ²ÓÐËù²»Í¬¡£ÔÚÎÒµÄmvcÏîÄ¿ÖÐÓÉÓÚÒªÓõ½ ckeditor£¬ÌØÒâÑо¿ÁËÏÂËüµÄʹÓ÷½·¨£¬Ð´ÏÂÀ´ºÍ´ó¼Ò·ÖÏí¡£
ÎÒÓõÄÊÇ×îа汾µÄ£ºckeditor_3.0.1 ÏÂÔصØÖ·£ºhttp://ckeditor.com/
ÏÂÔغóÖ±½Ó½âѹµÃµ½ckeditorÎļþ¼Ð£¬°üÀ¨ÈçÏÂÄÚÈÝ£º
ÆäÖÐsampleΪÀý×Ó£¬sourceΪԴÎļþ£¬ÎªÁ˼õÉÙeditorµÄÌå»ý£¬Ö±½Óɾ³ý¡£È»ºó½«Õû¸öÎļþ¼ÐÖ±½Ó¿½±´µ½ÍøÕ¾µÄ¸ùĿ¼ÏÂ.
ÔÚÄãÐèҪʹÓÃeditor¿Ø¼þµÄÒ³ÃæÍ·²¿Ìí¼Ó£º
<head>
...
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
</head>
ÔÚÒ³ÃæÏàӦλÖÃÉÏÌí¼Ó£º<textarea name="editor1"></textarea>
<script type="text/javascript">
window.onload = function()
{
CKEDITOR.replace( 'editor1' );
};
</script>
×¢Ò⣺js´úÂëÒ»¶¨ÒªÐ´ÔÚtextareaºó
Æäʵ¿ÉÒÔÕâÑùÀí½âeditor¿Ø¼þÖ»ÊǶÔtextarea×öÁËÒ»¸öƯÁÁµÄ°ü×°£¬ÎÒÃǵÄÊäÈëÆäʵ¶¼ÔÚÉÏÃæµÄtexareaÖУ¬×îÖÕÒ²ÊÇͨ¹ýtextarea
Ìá½»µ½·þÎñÆ÷¶Ë¡£
ÖªµÀÕâЩ£¬·þÎñÆ÷¶Ë´úÂë¾ÍÌ«¼òµ¥ÁË£º
[AcceptVerbs(HttpVerbs.Post)]
[ValidateInput(false)]
public ActionResult Create(FormCollection collection)
{
blog.Content = collection["editor1"];
¡£¡£¡£
}
collection["editor1"]¼´¿ÉÈ¡µÃeditorÖеÄÊäÈë¡£ÕâÀïÐèҪעÒâµÄÊÇÓÉÓÚtextareaÖÐÓÐÌØÊâ×Ö·û£¬³öÓÚ
°²È«ÔÒò£¬Ä¬ÈÏÇé¿ömvc¿ò¼Ü²»ÔÊÐíÌá½»µÄ£¬Ó¦ÔÚÏàÓ¦·½·¨ÉϼÓÉÏ[ValidateInput(false)]ÊôÐÔ¡£Ð§¹ûÈçÏ£º
»¹ÊÇÏ൱²»´íµÄ¡£
еÄeditorÖÐÈ¥³ýÁËÉÏ´«¹¦ÄÜ£¬Ò²¾ÍÊÇ˵ÎÒÃDz»ÄÜͨ¹ýÉÏ´«²åÈëͼƬ¡¢flashÁË¡£Èçͼ£ºeditorÖеIJåÈëͼƬ¶Ô»°¿ò²¢Ã»ÓÐÌṩÉÏ´«¹¦ÄÜ£º
ÐÒºÃÓиö²å¼þckfinder¿ÉÒÔ¸¨ÖúÎÒÃÇÍê³ÉÒÔϹ¦ÄÜ£¬²å¼þµÄÏÂÔصØַͬÑùÔÚ
http://ckeditor.com/ ×îа汾£ºckfinder_aspnet_1.4.1.1
½âѹºó£¬µÃµ½Ò»¸öÃûΪckfinderµÄÎļþ¼Ð£¬Í¬Ñùɾ³ýµôsource¡¢sampleĿ¼£¨ÔÒòͬÉÏ£©£¬¿½±´µ½ÍøÕ¾¸ùĿ¼Ï¡£Èçͼ£º
×¢Ò⣺ÕâÀﻹÓÐЩÅäÖñØÐëÒª×ö£º
°ÑÎļþ¼ÐÖеÄbinĿ¼ÏµÄdllÎļþÌí¼Óµ½ÍøÕ¾µÄÒýÓÃÖУ¬·ÀÖ¹³öÏÖÕÒ²»µ½ÀàµÄ´íÎó¡£
´ò¿ªconfig.ascx£¬ÐÞ¸Äpublic override bool CheckAuthenti
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
------±¾ÎÄתÔØ×ÔÍøÂ磬ËùÓÐȨ¹é×÷ÕßËùÓÐ
Èç¹ûÄãÒѾÓн϶àµÄÃæÏò¶ÔÏ󿪷¢¾Ñ飬Ìø¹ýÒÔÏÂÕâÁ½²½£º
µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C££»òVB.NET¡£
ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó£¨OO£©ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£
ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ²»ÏÂÈ¥£¡
µÚ¶þ²½¡¡¶Ô.NET FrameworkÀà¿âÓÐÒ» ......
ǰ̨ Èç¹ûÄãÓõÄÊÇ gridview ¾Í°ÑRepeaterÌæ»»³Égridview ¡£Ò»ÑùµÄ¡£¡£
<form id="frm01" action="" method="post" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
& ......
±¾ÎĽéÉÜͨ¹ý»º´æÀ´Ìá¸ßÍøÒ³µÄÖ´ÐÐЧÂÊ¡£
¡¡¡¡1.¡¡¡¡¡¡¡¡¡¡¡¡ ASP.NET Output Caching
¡¡¡¡µ±Ò»¸öÍøҳƵ·±±»·ÃÎʵÄʱºò£¬ÎÒÃÇ¿ÉÒÔͨ¹ý°ÑÕû¸öÍøÒ³»º´æÀ´Ìá¸ßÖ´ÐÐЧÂÊ¡£ÕâÑù×÷µÄÓŵãÊÇ£¬µ±Óû§ÔٴηÃÎÊÕâ¸öÍøÒ³µÄʱºò£¬±»¸ñʽ»¯ºÃµÄHTML»á±»Ö±½ÓËÍÏÔ¡£
¡¡¡¡ÎªÊ²Ã´»á´æÔÚÕâÖÖЧ¹ûÄØ£¿ÎÒÃÇͨ¹ýASP.NETµÄ»ù±¾ÔËÐлúÖÆÀ´½âÊÍÕ ......
ÔÚASP.NETÒ³ÃæÖо³£ÐèÒªÁ´ÈëһЩJSÎļþ,Èç:
Èç¹ûÔÚJSÀïÓÐÖÐÎĵĻ°,ÔÚÒ»°ãÇé¿öÏÂ,ÔÚä¯ÀÀÆ÷Àï»á±¨´í½Å±¾´íÎó.
Èç¹û²»ÐÅ¿ÉÒÔ×Ô¼ºÊÔÒ»ÊÔ¡£
¡¡ÆäʵÊÇÕâÑùµÄ£º
¡¡ÓÉVS.NET×Ô¶¯Éú³ÉµÄÏîÄ¿ÀWeb.ConfigÖÐÓÐÕâôһ¶Î£º
<
globalization
requestEncoding
="utf-8"
responseEncoding
=" ......