青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

牽牛散步
仗劍走天涯

ASP.Net Yahooo!!! Integration

I think this is it :)FCKeditor is a JavaScript application that runs in the browser. You can use it without any kind of strict server side integration, if you want. But, a more clean and powerful way to use it, is by choosing a server side integration package that fit your needs.

For ASP.Net, a parallel package is available to make it possible to use FCKeditor as any other control on WebForms. This package is called FCKeditor.Net.

It is very easy to use FCKeditor in your ASP.Net web pages. Just follow these steps.

Prerequisites

/!\ You must have downloaded and installed (copied it in your web site) the latest version of FCKeditor editor before proceeding with these steps. The FCKeditor.Net package doesn't include the core of the editor (JavaScript scripts to be placed in the /FCKeditor/ directory of your site). You can download it from the following URL:
http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=75845

Step 1

Suppose that the editor is installed in the "/FCKeditor/" path of your web site. Now you need to download the FCKeditor ASP.Net Control DLL to use in your pages. You can find the last version here:

http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=137125

Step 2

The downloaded ZIP file contains the original source code of the control and a compiled version of it (the "bin/Release/FredCK.FCKeditorV2.dll" file"). You most probably will not need to make changes in the source, so just consider the compiled DLL file, and just create a reference to it in your project. You have two options to do that:

  • Manually copying the FredCK.FCKeditorV2.dll file to the "bin" directory of your web site.
  • Right-clicking in "References" in your Visual Studio.Net project and select the FredCK.FCKeditorV2.dll file from the directory you have saved it.
  • You can include the control in your Visual Studio.Net controls toolbox. Just right-click on it and select "Add/Remove Items...". Then, just point to the FredCK.FCKeditorV2.dll file.
  • Make sure that you have the latest version of the dll. It may be worthwhile to recompile from the source if you are having issues getting the upload and connector features to work.

Step 3

Now the editor is ready to be used in your site, so just create a ASP.Net page and, to create an instance of the editor, you have two options:

  • Just drag and drop the control in your page from the toolbox (if you have added it to the toolbox as described at "Step 2").
  • Include the following line in the top of your ASP.Net page source:

<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>

And then adding the editor tag inside a <FORM runat="server">:

<FCKeditorV2:FCKeditor id="FCKeditor1" BasePath="/FCKeditor/" runat="server"></FCKeditorV2:FCKeditor>

/!\ Note that the BasePath property points to the directory where the FCKeditor scripts have been copied.

The complete sample

<%@ Page ValidateRequest="false" Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<html>
  <head>
    <title>FCKeditor - Sample</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <form runat="server">
      <FCKeditorV2:FCKeditor id="FCKeditor1" BasePath="/FCKeditor/" runat="server"></FCKeditorV2:FCKeditor>
      <br>
      <input type="submit" value="Submit" runat="server">
    </form>
  </body>
</html>

File Browser and Quick Upload

FCKeditor comes with a default File Browser that makes it easy to user to upload files and images to the server, as well as browse the available files for reuse. It is also available a "Quick Upload" feature to quickly upload files and create links for them.

This default system is integrated with all server side languages supported by FCKeditor. You just need to make a simple configuration to indicate which one you are using. To do that for ASP.Net, just open the fckconfig.js file in the directory where you have copied the FCKeditor core package. Look for the _FileBrowserLanguage and _QuickUploadLanguage entries and set their values to 'aspx' .

You must prepare your site to accept the uploaded files and their relative directory. structure. By default FCKeditor.Net will look for the UserFiles directory in the root of the web site, and place all files there. So, just create that directory.

/!\ Important: You must grant the necessary privileges to the IUSR_<ComputerName> user to be able to write files and create directories in the UserFiles directory.

Samples

You can find some samples on how to use the editor in the "_samples/aspx" directory of the FCKeditor.Net distribution package. To install the samples, just copy that directory to the _samples directory found in the FCKeditor core package installation.

Minimum Installation Sample

This is a fictitious structure of a ASP.Net web site using FCKeditor.

As we can see, this site is composed by:

  • The FredCK.FCKeditorV2.dll file, which has been downloaded from the FCKeditor.Net package and simply copied to the bin directory in the web site root. (See "Steps 1 and 2")

  • The FCKeditor directory, where the editor scripts have been copied (from the FCKeditor core package). (See "Prerequisites")

  • The UserFiles directory, where user uploaded files will be placed.

  • A simple MyPage.aspx page that uses the editor, with the above sample code on it. (See "Step 3")

Tips

You can set the default UserFiles path in your web.config file, so it will be set to all FCKeditor instances you use in your web site:

<appSettings>
   <add key="FCKeditor:UserFilesPath" value="/Wherever/Directory/" />
</appSettings>

ASP.Net 1.1 and 2.0

On the pages where FCKeditor has to be included, it's recommended to set the ValidateRequest property of the Page directive to false:

<%@ Page language="c#" Inherits="FredCK.FCKeditorV2.FileBrowserConnector" AutoEventWireup="false" ValidateRequest="false" %>

This is because some input created by the editor may be considered dangerous by the .Net Framework.

ASP.Net 2.0 and Themes

Special note if you are using Asp.net 2.0 and themes: you must open up \editor\filemanager\upload\aspx\upload.aspx and editor\filemanager\browser\default\connectors\aspx\connector.aspx and modify the first line to add Theme="" as follows:

<%@ Page language="c#" Inherits="FredCK.FCKeditorV2.FileBrowserConnector" AutoEventWireup="false" Theme="" %>

Changing the UserFilesPath by code

Suppose you would like to modify the location of user uploaded files. You can do so without dynamically adding the control, but you should do so in the page init, not the page load. For example, here is an example which uses files for each team in the same directory:

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
   Session("FCKeditor:UserFilesPath") = "~/App_Images/" & _teamName
End Sub

Add an editor Dynamically in your code

if you use an application method (virtual directory), then set the Base path in the web.config file:

For example if this is your FCKeditor path "c:/inetpub/wwwroot/virtualdir/FCKeditor/"

add this:

<add key="FCKeditor:BasePath" value="~/FCKeditor/"></add>

I use a session to set the filebrowsers path, Add the session variable before you make the control

Session("FCKeditor:UserFilesPath") = "/virtualdir/userfiles/"

I use the request object in order to establish the correct BasePath. I suppose that the correct path is on "http://<host>/FCKEditor/".

FCKeditor1.BasePath = Request.ApplicationPath + "/FCKEditor/";

Add the control to the page:

Dim fckeditor As New FredCK.FCKeditorV2.FCKeditor
fckeditor.ImageBrowserURL = "http://localhost/virtualdir/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx"
fckeditor.ID = "dynamicname"
fckeditor.Value = "the text you want in the FCK editor"
fckeditor.SkinPath = "skins/silver/"
fckeditor.ToolbarSet = "Default"
myForm.Controls.Add(fckeditor)

Developer's Guide/Integration/ASP.Net (2006-09-12 03:01:08由c-71-227-42-168編輯)

posted on 2006-09-12 14:55 牽牛散步 閱讀(1686) 評論(0)  編輯 收藏 引用

只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


 
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲激情成人网| 9国产精品视频| 在线不卡a资源高清| 久久人人爽人人| 久久9热精品视频| 久久精品电影| 欧美寡妇偷汉性猛交| 免费在线亚洲欧美| 久久精品亚洲乱码伦伦中文| 日韩特黄影片| 这里只有精品视频| 亚洲一区二区三区在线视频| 99精品热视频只有精品10| 日韩午夜免费| 亚洲综合999| 欧美一区二区视频免费观看 | 免费成人毛片| 久久久久国内| 欧美激情在线| 国产精品一区毛片| 国产日韩一区| 最新国产精品拍自在线播放| 亚洲专区国产精品| 久久亚洲视频| 亚洲一区二区不卡免费| 欧美成人免费网站| 精品成人一区| 欧美在线在线| 国产精品卡一卡二卡三| 国产精品久久波多野结衣| 国产亚洲欧美一区| 在线亚洲美日韩| 亚洲国产综合在线看不卡| 91久久久国产精品| 久久av资源网| 亚洲综合视频一区| 国产精品国产自产拍高清av| 狠狠88综合久久久久综合网| 亚洲永久网站| 影院欧美亚洲| 亚洲色图在线视频| 欧美激情一区二区久久久| 欧美伊人久久| 黑人巨大精品欧美一区二区小视频 | 欧美色123| 亚洲性图久久| 亚洲综合色激情五月| 国产精品对白刺激久久久| 中国亚洲黄色| 在线一区二区三区做爰视频网站 | 亚洲四色影视在线观看| 欧美日韩在线视频一区| 亚洲欧美综合精品久久成人 | 亚洲人成人一区二区在线观看| 亚洲天堂免费在线观看视频| 亚洲香蕉在线观看| 国产精品入口66mio| 久久精品一二三区| 久久精品国产欧美激情| 亚洲第一页在线| 夜夜精品视频| 制服丝袜亚洲播放| 国产女人精品视频| 亚洲第一页中文字幕| 欧美午夜精品久久久久久久| 欧美精品系列| 欧美大秀在线观看| 国产酒店精品激情| 日韩亚洲视频| 亚洲视频精选| 欧美交受高潮1| 欧美激情偷拍| 亚洲全部视频| 免费黄网站欧美| 久久综合色8888| 国产日韩精品电影| 亚洲欧美成人网| 午夜精品久久久久99热蜜桃导演| 欧美日本不卡高清| 亚洲第一视频网站| 9久草视频在线视频精品| 在线观看日韩精品| 欧美一区二区久久久| 亚洲欧美在线高清| 国产视频不卡| 欧美+亚洲+精品+三区| 欧美韩日视频| 亚洲欧洲在线看| 国产精品久久久久久久久久直播| av成人黄色| 麻豆freexxxx性91精品| 91久久在线| 国产日韩欧美亚洲| 亚洲视频网站在线观看| 欧美三级精品| 久久伊人亚洲| a4yy欧美一区二区三区| 久久视频这里只有精品| 91久久国产自产拍夜夜嗨 | 免费久久99精品国产自| 欧美国产视频在线| 亚洲二区三区四区| 国产精品第一区| 欧美中文在线观看国产| 亚洲承认在线| 久久久久久久成人| 亚洲欧美日韩国产综合| 一区二区在线视频播放| 欧美日韩亚洲激情| 另类亚洲自拍| 欧美在线免费播放| 亚洲美女少妇无套啪啪呻吟| 小处雏高清一区二区三区| 亚洲高清三级视频| 国产在线精品自拍| 国产欧美日韩不卡免费| 欧美日韩精品免费观看| 免费永久网站黄欧美| 久久综合婷婷| 欧美夫妇交换俱乐部在线观看| 久久久精品久久久久| 久久久xxx| 欧美精品免费视频| 久久成人免费日本黄色| 99综合在线| 亚洲精品久久久久久久久久久久| 亚洲国产日韩精品| 日韩午夜电影在线观看| 久久精品国产亚洲精品| 久久综合久久综合久久| 欧美成人免费在线视频| 亚洲精品免费一区二区三区| 亚洲人久久久| 亚洲天堂成人| 久久久综合视频| 欧美精品免费播放| 国产综合18久久久久久| 亚洲国内自拍| 久久一综合视频| 欧美三级午夜理伦三级中视频| 国产精品久久亚洲7777| 狠狠色狠色综合曰曰| 制服丝袜激情欧洲亚洲| 美国成人直播| 亚洲一区二区三区高清不卡| 久久噜噜亚洲综合| 国产精品自拍在线| 日韩视频精品| 亚洲第一区在线| 亚洲欧美日韩精品综合在线观看| 久久久久久久性| 国产一区二区三区久久精品| 亚洲天堂成人| 亚洲精品免费在线观看| 久久这里只精品最新地址| 欧美一区二区免费观在线| 日韩午夜剧场| 欧美日韩另类综合| 在线亚洲高清视频| 亚洲日本激情| 国产精品久久久久久久久免费| 99精品国产在热久久| 亚洲乱码国产乱码精品精| 美女诱惑一区| 亚洲免费观看高清完整版在线观看熊| 久久综合国产精品台湾中文娱乐网| 亚洲综合导航| 精品91久久久久| 亚洲国产成人久久综合| 欧美另类综合| 欧美在线啊v一区| 久久精品国产v日韩v亚洲 | 亚洲人在线视频| 欧美日韩精品一区二区在线播放 | 欧美午夜电影在线观看| 欧美日韩国产在线看| 一本久久综合亚洲鲁鲁| 久久激情中文| 亚洲一本视频| 亚洲日本激情| 先锋a资源在线看亚洲| 亚洲全黄一级网站| 欧美一区二区免费观在线| 国产精品99久久久久久久女警| 欧美一级在线播放| 亚洲性夜色噜噜噜7777| 欧美激情一区二区三区| 久久精品卡一| 国产精品丝袜白浆摸在线| 亚洲国产婷婷综合在线精品| 国产精品一区亚洲| 在线视频欧美一区| 亚洲欧美国产77777| 国产精品国产三级国产| 亚洲精品视频二区| 一二三区精品| 国产精品嫩草影院一区二区| 亚洲视频网站在线观看| 亚洲四色影视在线观看| 国产精品福利片|