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

牽牛散步
仗劍走天涯

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 牽牛散步 閱讀(1688) 評論(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>
            久久久久综合| 亚洲电影在线观看| 亚洲日韩第九十九页| 玖玖玖国产精品| 亚洲国产精选| 亚洲国产精品福利| 欧美激情视频在线播放| 一本不卡影院| 伊人久久久大香线蕉综合直播| 久久蜜桃香蕉精品一区二区三区| 久久国内精品视频| 亚洲国产1区| 欧美激情一级片一区二区| 欧美成年人视频网站欧美| 99国产精品私拍| 久久超碰97中文字幕| 免费成人av在线| 免费亚洲视频| 亚洲福利视频一区| 亚洲少妇中出一区| 欧美一区二区三区四区高清 | 久久久欧美精品| 亚洲精品一二三区| 亚洲素人在线| 在线播放中文一区| 在线亚洲激情| 亚洲第一综合天堂另类专| 亚洲精品视频在线播放| 国产亚洲一区精品| 日韩视频在线观看免费| 好看的日韩视频| 亚洲精品久久在线| 你懂的视频一区二区| 欧美一区二区三区精品电影| 国产精品一区免费在线观看| 亚洲一区二区三区激情| 国产精品国产三级国产专区53| 欧美一区成人| 欧美日韩在线观看视频| 欧美黑人国产人伦爽爽爽| 国内自拍亚洲| 欧美激情第三页| 亚洲视频高清| 亚洲欧美日韩精品综合在线观看| 亚洲美女电影在线| 老司机免费视频久久| 久久久亚洲高清| 国产精品视频yy9099| 亚洲人成毛片在线播放| 影音先锋久久精品| 性欧美大战久久久久久久久| 国产精品99久久久久久久久| 麻豆精品传媒视频| 久久在线观看视频| 国产揄拍国内精品对白| 亚洲一区二区精品| 亚洲视频一区在线观看| 欧美日本一道本| 亚洲韩国青草视频| 亚洲精品永久免费| 欧美成人综合网站| 亚洲欧洲另类国产综合| 亚洲每日在线| 欧美国产一区二区在线观看 | 亚洲影院色在线观看免费| 欧美高清不卡| 亚洲精品1234| 夜夜爽夜夜爽精品视频| 欧美美女日韩| 日韩午夜电影av| 一区二区三区毛片| 国产精品激情| 午夜精品久久久99热福利| 久久国产精品久久久| 国产日韩欧美三级| 久久国产日本精品| 欧美国产乱视频| 亚洲三级免费观看| 欧美视频在线观看视频极品| 一本一本久久a久久精品综合麻豆 一本一本久久a久久精品牛牛影视 | 在线观看av不卡| 美女日韩在线中文字幕| 亚洲级视频在线观看免费1级| 亚洲欧洲久久| 国产精品v欧美精品v日韩| 亚洲欧美日韩视频二区| 麻豆精品在线视频| 91久久夜色精品国产网站| 欧美国产欧美亚州国产日韩mv天天看完整| 亚洲国产精品小视频| 亚洲一级片在线观看| 国产日韩亚洲欧美精品| 久久夜色精品一区| 一本久道久久综合婷婷鲸鱼| 欧美一区二区三区喷汁尤物| 韩国一区电影| 欧美日本在线| 午夜一区二区三区不卡视频| 麻豆久久久9性大片| 一区二区国产精品| 黑人巨大精品欧美黑白配亚洲| 美女爽到呻吟久久久久| 一本色道久久综合亚洲二区三区| 久久久亚洲成人| 夜夜精品视频一区二区| 国产一区在线观看视频| 欧美日韩妖精视频| 久久久夜夜夜| 亚洲欧美日韩精品综合在线观看| 欧美肥婆在线| 久久九九国产| 亚洲一区二区三区四区五区午夜| 狠狠色噜噜狠狠狠狠色吗综合| 欧美精品成人| 久久久久亚洲综合| 亚洲一区二区三区影院| 亚洲电影免费| 久久综合久久综合久久| 亚洲五月六月| 亚洲毛片在线看| 亚洲大黄网站| 国产日韩欧美在线观看| 欧美日韩亚洲免费| 欧美成人69av| 久久婷婷久久| 久久xxxx精品视频| 亚洲一级网站| 中日韩高清电影网| 亚洲特级片在线| 欧美一区二区三区视频免费| 久久免费视频在线观看| 亚洲国产婷婷香蕉久久久久久| 日韩亚洲精品视频| 亚洲欧美一区二区激情| 久久精品一区蜜桃臀影院 | 国产精品一区二区三区四区五区 | 亚洲天堂av高清| 亚洲激情在线观看| 亚洲电影中文字幕| 亚洲电影免费在线观看| 裸体丰满少妇做受久久99精品| 久久国产色av| 欧美影院一区| 久久精品视频免费播放| 翔田千里一区二区| 久久成人羞羞网站| 久久精品天堂| 久久野战av| 久久久水蜜桃| 欧美成人午夜激情视频| 欧美福利网址| 亚洲精品美女久久7777777| 亚洲电影在线播放| 亚洲片国产一区一级在线观看| 亚洲黄色天堂| 日韩视频免费观看高清在线视频| 日韩一区二区精品视频| 欧美激情综合亚洲一二区| 欧美日韩在线大尺度| 在线成人欧美| 欧美一级播放| 日韩亚洲欧美综合| 亚洲电影欧美电影有声小说| 亚洲欧洲精品成人久久奇米网| 亚洲欧洲一区二区三区久久| 99在线|亚洲一区二区| 亚洲专区一区二区三区| 久久久综合精品| 亚洲经典自拍| 亚洲欧美中文日韩在线| 久久婷婷人人澡人人喊人人爽| 欧美交受高潮1| 国产伦精品一区二区三区免费| 狠狠色综合色区| 在线午夜精品| 麻豆av一区二区三区久久| 亚洲国产精品女人久久久| 正在播放亚洲| 麻豆精品传媒视频| 国产精品色一区二区三区| 在线看日韩av| 亚洲欧美日韩国产中文| 免费一区二区三区| 亚洲一区二区三区欧美 | 亚洲精品久久7777| 午夜精品在线看| 欧美片第一页| 极品尤物av久久免费看| 一区二区三区成人| 蜜桃久久精品乱码一区二区| 亚洲乱码国产乱码精品精可以看 | 亚洲精品乱码视频| 久久电影一区| 国产精品无码永久免费888| 亚洲国产精品久久91精品| 欧美在线亚洲在线| 亚洲精选在线| 欧美成人一区在线| 在线免费一区三区| 久久精品国产第一区二区三区|