1. FreeTextBox (version 3.2.1)
[Html]
<% @ Register Assembly = "FreeTextBox" Namespace = "FreeTextBoxControls" TagPrefix = "FTB" %>
<% @ Register Assembly = "FreeTextBox" Namespace = "FreeTextBoxControls" TagPrefix = "FTB" %> 5. reference the control's html code:
[Html]
<FTB: freeTextBox Text = "" Language = "zh-CN" ToolbarStyleConfiguration = "OfficeMac" ID = "ftbContent" Width = "100%" Height = "300px" runat = "server">
</FTB: FreeTextBox>
<FTB: freeTextBox Text = "" Language = "zh-CN" ToolbarStyleConfiguration = "OfficeMac" ID = "ftbContent" Width = "100%" Height = "300px" runat = "server">
</FTB: FreeTextBox> 6. the backend page control uses the following code:
[Csharp]
FtbContent. Text = "<p> wnaghengheng </p> ";
String result = ftbContent. Text;
FtbContent. Text = "<p> wnaghengheng </p> ";
String result = ftbContent. Text;
Ii. FCKeditor (Version 2.2)
Download two zip packages fckeditor2.4.2.zip and FCKeditor. NET in 1、, and decompress the FCKeditor folder and FredCK. FCKeditorV2.dll;
2. Copy FredCK. FCKeditorV2.dll to the binfile of the project, copy the FCKeditor folder to the project root directory, and create a new Files folder in the project root directory to store Files uploaded by FCKeditor;
3. Right-click "Reference"-> "add reference"-> "Browse", find FredCK. FCKeditorV2.dll, and confirm to reference FredCK. FCKeditorV2.dll;
4. Open the project web. config and add the following three items under the <paiettings> node:
[Html]
<Add key = "FCKeditor: BasePath" value = "~ /FCKeditor/"/>
<Add key = "FCKeditor: UserFilesPath" value = "~ /Files/"/>
<Add key = "FCKeditor: UploadDeniedExtensions" value = ". php |. php3 |. php5 |. phtml |. asp |. aspx |. ascx |. jsp |. cfm |. cfc |. pl |. bat |. exe |. dll |. reg |. cgi |. cs |. vb |. asa |. cer | c. dx |. ascx |. asax |. ashx |. asmx |. java |. jsl "/>
<Add key = "FCKeditor: BasePath" value = "~ /FCKeditor/"/>
<Add key = "FCKeditor: UserFilesPath" value = "~ /Files/"/>
<Add key = "FCKeditor: UploadDeniedExtensions" value = ". php |. php3 |. php5 |. phtml |. asp |. aspx |. ascx |. jsp |. cfm |. cfc |. pl |. bat |. exe |. dll |. reg |. cgi |. cs |. vb |. asa |. cer | c. dx |. ascx |. asax |. ashx |. asmx |. java |. jsl "/> 5. Create An aspx Page and register the control first. The Code is as follows (after @ Page ):
[Html]
<% @ Register Assembly = "FredCK. FCKeditorV2" Namespace = "FredCK. FCKeditorV2" TagPrefix = "FCKeditorV2" %>
<% @ Register Assembly = "FredCK. FCKeditorV2" Namespace = "FredCK. FCKeditorV2" TagPrefix = "FCKeditorV2" %> 6. reference the control's html code:
[Html]
<FCKeditorV2: FCKeditor id = "txtBody" runat = "server" BasePath = "~ /FCKeditor/"Width =" 100% "ToolbarStartExpanded =" false "Height =" pixel PX ">
</FCKeditorV2: FCKeditor>
<FCKeditorV2: FCKeditor id = "txtBody" runat = "server" BasePath = "~ /FCKeditor/"Width =" 100% "ToolbarStartExpanded =" false "Height =" pixel PX ">
</FCKeditorV2: FCKeditor> 7. The back-end page control uses the following code:
[Html]
TxtBody. Value = "<p> wnaghengheng </p> ";
String result = txtBody. Value;
TxtBody. Value = "<p> wnaghengheng </p> ";
String result = txtBody. Value;
Iii. Effects
FreeTextBox:
FCKeditor:
Note: The two editors mentioned here use old versions, and the new versions may be different. Please note when using them!