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

牽牛散步
仗劍走天涯

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) 評(píng)論(0)  編輯 收藏 引用

只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航: 博客園   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>
            国产精品99久久久久久久久久久久| 国产一区二区三区无遮挡| 亚洲手机视频| 欧美日韩在线观看一区二区三区| 欧美中文在线视频| 亚洲第一中文字幕在线观看| 国产一区二区三区四区三区四 | 欧美另类变人与禽xxxxx| 日韩一级不卡| 男人的天堂成人在线| 亚洲在线视频| 国产一区二区黄| 久久久噜噜噜久久中文字幕色伊伊| 亚洲国产日韩在线| 国产精品毛片在线看| 欧美va天堂在线| 久久精品人人做人人综合 | 欧美成人一区二区三区在线观看 | 久久蜜桃精品| 久久免费少妇高潮久久精品99| 亚洲黄色免费电影| 国产伦精品一区二区三区照片91| 欧美区一区二| 老司机免费视频一区二区| 亚洲自拍偷拍视频| 亚洲先锋成人| 亚洲日韩视频| 亚洲精品资源美女情侣酒店| 亚洲电影观看| 欧美岛国激情| 久久久久久网址| 亚洲日本欧美天堂| 欧美福利一区| 亚洲精品国产视频| 亚洲三级观看| 国产欧美一区二区三区在线老狼 | 亚洲国产精品尤物yw在线观看| 亚洲精品老司机| 亚洲国产另类久久久精品极度| 一区二区三区久久久| 久久精品一本| 99国产精品一区| 1769国内精品视频在线播放| 亚洲一区二区三区国产| 国产精品素人视频| 欧美一级片一区| 欧美高清在线一区| 日韩一区二区精品葵司在线| 国产喷白浆一区二区三区| 亚洲一区亚洲| 午夜欧美不卡精品aaaaa| 欧美电影免费观看网站| 亚洲成人在线| 欧美乱大交xxxxx| 久久久国产精品亚洲一区| 亚洲欧洲一区二区在线观看| 国产欧美日韩另类视频免费观看| 精品二区视频| 国产精品视频| 在线观看日韩精品| 狠狠色综合播放一区二区| 国产精品美女黄网| 国产一二三精品| 国产视频在线一区二区| 国产欧美三级| 国产在线精品成人一区二区三区 | 欧美在线不卡视频| 亚洲午夜久久久| 亚洲高清视频一区| 亚洲国产视频一区| 红杏aⅴ成人免费视频| 国产精品一卡二卡| 国产欧美精品一区二区三区介绍| 国产精品露脸自拍| 精品不卡在线| 亚洲精品在线视频| 久热精品视频在线| 欧美激情第4页| 午夜一区不卡| 欧美激情在线播放| 亚洲国内高清视频| 亚洲日本电影在线| 亚洲一区三区视频在线观看| 鲁大师成人一区二区三区| 久久久久久久久久久久久久一区| 美腿丝袜亚洲色图| 国产一区二区日韩精品欧美精品| 国产精品美女| 久久久www成人免费精品| 亚洲欧美国产视频| 蜜臀久久99精品久久久画质超高清 | 国产日韩三区| 国产一区二区三区四区三区四| 免费日韩成人| 久久久蜜桃一区二区人| 欧美日韩在线免费| 黄色一区二区在线| 亚洲欧美bt| 久久裸体视频| avtt综合网| 欧美午夜精品理论片a级大开眼界| 韩国久久久久| 欧美激情一区二区三区蜜桃视频| 久久天堂成人| 国产精品99久久久久久人 | 亚洲图片自拍偷拍| 日韩视频欧美视频| 亚洲第一在线视频| 欧美亚州韩日在线看免费版国语版| 亚洲福利视频网站| 久久精品成人一区二区三区| 亚洲欧美另类在线| 尤妮丝一区二区裸体视频| 免费日韩成人| 影音先锋中文字幕一区| 麻豆成人av| 欧美阿v一级看视频| 午夜在线电影亚洲一区| 另类人畜视频在线| 在线成人欧美| 亚洲欧美国产高清va在线播| 亚洲国产你懂的| 久久久久国产一区二区三区四区| 亚洲无限av看| 国产午夜精品福利| 亚洲欧洲日本mm| 国产亚洲电影| 日韩视频免费在线| 亚洲欧洲中文日韩久久av乱码| 午夜精品视频一区| 亚洲永久免费精品| 欧美日本在线视频| 亚洲国产一区二区三区在线播| 国产日本欧美一区二区| 在线一区二区三区做爰视频网站| 亚洲毛片在线看| 欧美激情亚洲自拍| 亚洲高清免费视频| 在线观看亚洲| 久久夜色精品国产欧美乱极品| 久久精品国产99| 国产日产欧美精品| 久久福利一区| 欧美中在线观看| 国产九色精品成人porny| 亚洲四色影视在线观看| 亚洲欧美日韩另类| 国产精品综合网站| 欧美专区在线| 美国成人毛片| 亚洲国产精品电影在线观看| 久久综合久久综合久久| 欧美黄色影院| 亚洲精品一区二区三区婷婷月| 欧美成人免费大片| 亚洲精品国精品久久99热一| 一本久久a久久免费精品不卡| 欧美日韩直播| 亚洲一区久久| 噜噜噜在线观看免费视频日韩| 在线精品国精品国产尤物884a| 麻豆av一区二区三区| 亚洲电影自拍| 亚洲一区二区3| 国产婷婷一区二区| 欧美freesex8一10精品| 亚洲精品视频在线| 久久国产欧美| 亚洲日本中文字幕| 国产精品每日更新在线播放网址| 小嫩嫩精品导航| 亚洲国产成人精品久久| 女同性一区二区三区人了人一| 女女同性精品视频| 亚洲午夜久久久久久尤物 | 欧美日韩国产欧美日美国产精品| 亚洲理伦在线| 美国成人直播| 亚洲一区免费| 在线看片第一页欧美| 欧美日韩综合在线免费观看| 欧美影片第一页| 日韩亚洲欧美一区| 久久亚洲影音av资源网| 中国成人在线视频| 一区在线观看视频| 老司机免费视频一区二区三区| 亚洲免费精品| 欧美成人午夜| 欧美综合第一页| 亚洲一区二区精品| 亚洲国产综合视频在线观看| 国产一区二区精品丝袜| 欧美视频观看一区| 欧美精品不卡| 久久综合色播五月| 久久久久国产一区二区三区| 亚洲欧美日韩成人| 99视频精品| 99国内精品久久|