ÔÚASP.NETÖÐʹÓÃFCKeditorµÄ·½·¨
֮ǰÓõÄÔÚÏß±à¼Æ÷ÊÇDotNetTextBox £¬²¢ÇÒÔøÒ»¶È¾õµÃËüÒ쳣ǿ´ó£¬Èç¿ÉÒÔ¸øÉÏ´«µÄͼƬ¼ÓÎÄ×Öˮӡ»òÕßͼƬˮӡ£¬µ«ºóÀ´·¢ÏÖÆäÉÏ´«µÄͼƬ²»ÈÝÒ×¹ÜÀí£¬¶¼¼·ÔÚÒ»¸öÎļþ¼ÐÀïÃ棨Ãâ·Ñ°æ£¬¸¶·Ñ°æºÃÏñ¿ÉÒÔ·ÖÎļþ¼ÐÉÏ´«±£´æͼƬ£©£¬²¢ÇÒ¶ÎÊ׿ոñ×ܲ»ÊÇËù¼û¼´ËùµÃ£¬ÎÒ±à¼Ê±¿ÕÁËÁ½¸ö×Ö·ûµÄλÖ㬵½ÁËǰ̨ҳÃæµÄʱºòÖ»ÓÐÒ»¸ö×Ö·û£¬ËùÒÔ½ñÌìÎÒÔÙÕÒÁËÒ»¿î.NetµÄÔÚÏß±à¼Æ÷£¬¼¼ÊõȺµÄ»Æ»èÍƼöÁËFCKeditor£¬°Ù¶ÈÁËһϣ¬ÆÀ¼Û»¹²»´í£¬¶øÇÒ¿ªÔ´£¬ÓÚÊǵ½Æä¹ÙÍøÏÂÔØÁË×îеİ汾FCKeditor_2.6.3¡£ÕâÀïÐèҪעÒâһϣ¬µ¥ÏÂÔØFCKeditor_2.6.3.zip²¢²»ÄÜÓ¦ÓÃ.Net»·¾³£¬»¹ÐèÒªÏÂÔØÁíÍâÒ»¸öÎļþFCKeditor.Net_2.6.3.zip¡£¹ÙÍøÏÂÔصØÖ·£ºhttp://www.fckeditor.net/¡£
ÏÂÃæ½²½²FCKeditor.Net±à¼Æ÷ÔÚ.net»·¾³µÄÅäÖ÷½·¨¡£
µÚÒ»²½£º½âѹËõFCKeditor_2.6.3.zipÎļþ£¬²¢½«½âѹËõµÃµ½µÄfckeditorÎļþ¼Ð¸´ÖƵ½ÄãÏëʹÓÃÕâ¸ö±à¼Æ÷µÄÍøÕ¾µÄ¸ùĿ¼ÏÂÃæ¡£
µÚ¶þ²½£º°ÑÏÂÔصÄFCKeditor.Net.zipËæ±ã½âѹËõµ½ÄãÓ²Å̵ÄÒ»¸ö¿ÕĿ¼£¬ÀïÃæÊÇFCKeditor.NetµÄÔ´´úÂ룬¿ÉÒÔ¶ÔËü½øÐÐÔٶȿª·¢£¬ÎÒÕâÀï½²Ö±½ÓÓ¦Óã¬ÎÒÃÇҪʹÓõ½ÊÇÆäĿ¼ÏµÄ\bin\DebugĿ¼ÖеÄFredCK.FCKeditorV2.dllÎļþ¡£ÔÚÄãµÄÍøÕ¾ÀïÃæ°ÑÕâ¸öFredCK.FCKeditorV2.dllÌí¼Óµ½binĿ¼Ï¡£
µÚÈý²½£º½øÈëFCKeditorÎļþ¼Ð£¬±à¼ fckconfig.js Îļþ£¬ÈçÏ£º
1¡¢Ö¸¶¨±à¼Æ÷Ó¦Óõıà³Ì»·¾³£¬ÐÞ¸Ä
var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | php
¸ÄΪ
var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php
2¡¢ÅäÖÃÓïÑÔ°ü¡£ÓÐÓ¢ÎÄ¡¢·±ÌåÖÐÎĵȣ¬ÕâÀïÎÒÃÇʹÓüòÌåÖÐÎÄ¡£
ÐÞ¸Ä
FCKConfig.DefaultLanguage = 'en' ;
Ϊ
FCKConfig.DefaultLanguage = 'zh-cn' ;
3¡¢ÅäÖÃƤ·ô¡£ÓÐdefault¡¢office2003¡¢silver·ç¸ñµÈ£¬ÕâÀïÎÒÃÇ¿ÉÒÔʹÓÃĬÈÏ¡£
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
4¡¢ÔÚ±à¼Æ÷ÓòÄÚ¿ÉÒÔʹÓÃTab¼ü¡££¨1ΪÊÇ£¬0Ϊ·ñ£©
FCKConfig.TabSpaces = 0 ; ¸ÄΪFCKConfig.TabSpaces = 1 ;
5¡¢¼ÓÉϼ¸ÖÖÎÒÃdz£ÓõÄ×ÖÌåµÄ·½·¨£¬ÀýÈ磺
ÐÞ¸Ä
FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Ve
Ïà¹ØÎĵµ£º
ʵÏÖ·½·¨¾ÍÊǸøµ¥Ôª¸ñÌî³äÎÒÃÇÏëÒªµÄ¸ñʽ´úÂë¡£
==============C#==============
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script run ......
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace TLibrary.ObjectHelper
{
public class CookiesHelper
{
#region ......
½ñÔçÓиöÍøÓÑÎʵ½ÎÒÕâÎÊÌ⣬ÒÔÇ°ÎÒ¶¼ÊÇÖ±½ÓÔÚÊý¾Ý¿âÖдæÎļþÃûµÄ£¬»¹Ã»ÓÐÊÔ¹ý´æ´¢ÕûÕÅͼƬµ½Êý¾Ý¿âÖУ¬ÉÏÍøËÑË÷ÁËһϣ¬×Ô¼ºÓÖ²âÊÔÁËÒ»·¬£¬´úÂëÈçÏ£º
½¨Á¢±£´æͼƬµÄ±íµÄSQLÓï¾ä£º
Sql´úÂë < width="14" height="15" src="javascripts/syntaxhighlighter/clipboard_new.swf" pluginspage="http://w ......
1.Asp.NetÖм¸ÖÖÏàËƵıê¼Ç·ûºÅ: < %=...%>< %#... %>< % %>< %@ %>½âÊͼ°Ó÷¨
´ð: < %#... %>: ÊÇÔڰ󶨿ؼþDataBind()·½·¨Ö´ÐÐʱ±»Ö´ÐУ¬ÓÃÓÚÊý¾Ý°ó¶¨
Èç: < %# Container.DataItem("tit") %>
< %= %>: ÔÚ³ÌÐòÖ´ÐÐʱ±»µ÷Ó㬿ÉÒÔÏÔʾºǫ́±äÁ¿Öµ
Èç:
*.aspxÖУº < %= a ......
asp.netÖе¼³öExeclµÄ·½·¨£º
ÔÚasp.netÖе¼³öExeclÓÐÁ½ÖÖ·½·¨£¬Ò»ÖÖÊǽ«µ¼³öµÄÎļþ´æ·ÅÔÚ·þÎñÆ÷ij¸öÎļþ¼ÐÏÂÃ棬Ȼºó½«ÎļþµØÖ·Êä³öÔÚä¯ÀÀÆ÷ÉÏ£»Ò»ÖÖÊǽ«ÎļþÖ±½Ó½«ÎļþÊä³öÁ÷д¸øä¯ÀÀÆ÷¡£ÔÚResponseÊä³öʱ£¬t·Ö¸ôµÄÊý¾Ý£¬µ¼³öexeclʱ£¬µÈ¼ÛÓÚ·ÖÁУ¬nµÈ¼ÛÓÚ»»ÐС£
1¡¢½«Õû¸öhtmlÈ«²¿Êä³öexecl
´Ë·¨½«htmlÖÐËùÓеÄÄÚÈÝ£ ......