articles

Home / DeveloperSection / Articles / Ajax Toolkit Editor Control in ASP.Net

Ajax Toolkit Editor Control in ASP.Net

Ajax Toolkit Editor Control in ASP.Net

Anonymous User 21735 07-Dec-2010

HTMLEditor is an ASP.NET AJAX Control that allows you to easily create and edit HTML content. Various buttons in toolbar are used for content editing.

Editor Properties:

ActiveMode - Active editing panel (Design, Html, and Preview) on control loaded

AutoFocus - If true, editing panel is focused and cursor is set inside it ("Design" or "HTML text") on initial load or editing panel change

Content - Gets/sets HTML content of HTMLEditor

Height - Sets the height of the body of the HTMLEditor

IgnoreTab - If true, Tab key navigation is suppressed inside HTMLEditor control

InitialCleanUp - If true, HTMLEditor's content is cleaned up on initial load. MS Word specific tags are removed

NoScript - If true, JavaScript code is suppressed in HTMLEditor's content

NoUnicode - If true, all Unicode characters in HTML content are replaced with &#code;

OnClientActiveModeChanged - The client-side script that executes after active mode (editing panel) changed

OnClientBeforeActiveModeChanged - The client-side script that executes before active mode (editing panel) changed

SuppressTabInDesignMode - If true, no white spaces inserted on Tab key press in Design mode. Default Tab key navigation is processing in this case

Code:
 <%-- ScriptManager control manages client script for AJAX enabled ASP.NET pages.This enables partial-page rendering and Web-service calls.You have to used this if you want to use ajax control--%>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<%--Use the Editor control here--%>
<cc1:Editor ID="Editor1" runat="server" Width="450px" Height="200px"/>
Run the project

Ajax Toolkit Editor Control in ASP.Net

 

Ajax Toolkit Editor Control in ASP.Net

When you click submit button then entered value will show in the Label.

Ajax Toolkit Editor Control in ASP.Net



Updated 14-Feb-2020
I am a content writter !

Leave Comment

Comments

Liked By