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

牽牛散步
仗劍走天涯

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>
            鲁鲁狠狠狠7777一区二区| 国产在线精品二区| 中文国产成人精品久久一| 亚洲精品国精品久久99热| 国产精品国产三级国产| 亚洲综合三区| 久久久久久国产精品mv| 亚洲网在线观看| 亚洲毛片在线观看.| 欧美激情久久久久| 久久精品首页| 亚洲一区二区综合| 免费人成精品欧美精品| 国产午夜精品久久久久久久| 妖精成人www高清在线观看| 亚洲一区影音先锋| 亚洲人成在线播放网站岛国| 久久精品二区| 欧美在线视频全部完| 欧美无乱码久久久免费午夜一区 | 蜜桃av一区| 国产日韩精品一区二区| 亚洲欧美日韩电影| 欧美一区二区三区四区在线观看| 欧美精品18+| 亚洲看片免费| 先锋影音一区二区三区| 久久久久久久久久久久久女国产乱| 欧美三级视频| 亚洲欧美国产三级| 国产日韩精品在线| 亚洲天堂av综合网| 亚洲欧美另类在线| 久久久五月天| 国产一区自拍视频| 久久精品观看| 一本高清dvd不卡在线观看| 亚洲综合丁香| 91久久在线播放| 国产精品毛片在线看| 久久国产精品99国产精| 最新国产精品拍自在线播放| 性欧美超级视频| 亚洲精品久久久久久一区二区| 国产精品久久久久7777婷婷| 久久精品青青大伊人av| 中文网丁香综合网| 欧美成人一区二区三区| 久久久久久69| 亚洲深夜福利视频| 亚洲黄一区二区| 欧美成人激情在线| 久久久女女女女999久久| 亚洲人屁股眼子交8| 好吊一区二区三区| 国产精品一区视频网站| 欧美日本一区二区三区| 两个人的视频www国产精品| 亚洲综合精品四区| 亚洲一区国产视频| 99精品国产高清一区二区| 欧美在线精品免播放器视频| 国产一区二区欧美| 在线观看91久久久久久| 国产一区二三区| 国产精品高清在线| 欧美看片网站| 国产精品www.| 国际精品欧美精品| 亚洲精品视频在线| 国模精品娜娜一二三区| 尹人成人综合网| 亚洲精选在线观看| 国产精品99久久久久久宅男| 99精品免费| 久久久久久久国产| 欧美va天堂va视频va在线| 女同一区二区| 99国产精品视频免费观看| 亚洲一区三区视频在线观看| 久久福利影视| 欧美国产激情| 欧美一区二区三区视频免费播放 | 亚洲高清不卡在线观看| 亚洲国产成人精品久久| 欧美资源在线观看| 久久精品国产v日韩v亚洲| 国产日产高清欧美一区二区三区| 国产欧美精品va在线观看| 亚洲激情第一页| 欧美高清免费| 国产精品久久国产三级国电话系列| 久久亚洲春色中文字幕| 欧美精品一区二区在线观看| 欧美一级视频精品观看| 中文精品视频| 亚洲国产天堂久久综合网| 日韩午夜电影在线观看| 在线观看精品| 久久精彩视频| 伊人狠狠色j香婷婷综合| 欧美亚韩一区| 欧美在线免费观看| 欧美日韩国产另类不卡| 久久亚洲精品网站| 国产精品视频内| 亚洲国产精品成人久久综合一区| 国产精品久久久久久久午夜| 亚洲国产精品悠悠久久琪琪| 欧美日韩成人综合| 美日韩精品免费观看视频| 欧美天天视频| av成人免费在线| 亚洲国产一二三| 亚洲无线视频| 亚洲综合社区| 国产精品ⅴa在线观看h| 日韩午夜激情电影| 亚洲在线一区| 欧美特黄一区| 99精品视频一区二区三区| 狠狠色综合网站久久久久久久| 先锋影音网一区二区| 亚洲影院免费观看| 国产精品日本一区二区| 亚洲欧美视频| 久久综合久久综合这里只有精品 | 国产综合香蕉五月婷在线| 午夜一区不卡| 久久精品国产久精国产爱| 国外精品视频| 亚洲第一区中文99精品| 亚洲国产毛片完整版| 欧美区亚洲区| 亚洲欧美bt| 美女视频黄免费的久久| 亚洲美女淫视频| 国产精品尤物| 美女福利精品视频| 亚洲性夜色噜噜噜7777| 看欧美日韩国产| 亚洲综合欧美日韩| 亚洲欧洲日本国产| 亚洲二区免费| 狠狠88综合久久久久综合网| 欧美三级网址| 欧美日韩一区二区三区在线| 美日韩精品免费| 久久嫩草精品久久久精品| 久久精品二区| 久久人人精品| 你懂的国产精品永久在线| 免费黄网站欧美| 欧美韩日亚洲| 欧美日韩另类一区| 国产精品久久久亚洲一区| 国产精品久久午夜| 国产精品美女久久久| 国产精品久久久久影院色老大| 国产精品免费一区二区三区观看| 国产精品爱啪在线线免费观看| 欧美日韩国产麻豆| 国产精一区二区三区| 国产永久精品大片wwwapp| 亚洲大胆女人| 夜夜夜久久久| 久久精品国产69国产精品亚洲| 欧美专区在线观看| 欧美高清在线一区| 在线综合亚洲| 久久久噜噜噜久噜久久| 欧美国产免费| 国产欧美亚洲视频| 亚洲人成小说网站色在线| 欧美一区二区成人6969| 欧美69wwwcom| 午夜亚洲性色福利视频| 欧美精品v日韩精品v韩国精品v| 国产精品久久久久9999高清| 国产自产在线视频一区| 一本色道久久综合亚洲精品按摩| 亚洲一区二区免费看| 老司机精品久久| 日韩亚洲欧美中文三级| 欧美影院在线| 国产精品福利在线观看| 国产精品推荐精品| 91久久久在线| 欧美一进一出视频| 亚洲第一区色| 久久精品视频播放| 国产精品毛片一区二区三区| 亚洲欧洲一区二区三区在线观看| 久久精品免费播放| 一区二区三欧美| 欧美精品久久99久久在免费线| 韩国av一区二区三区四区| 亚洲欧美国产另类| 一本一本久久a久久精品牛牛影视| 久久中文精品|