Skip to main content
A newer version of this page is available. .

ASPxHtmlEditor.Html Property

Specifies the HTML markup that is the ASPxHtmlEditor‘s content.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v18.2.dll

Declaration

[DefaultValue("")]
public string Html { get; set; }

Property Value

Type Default Description
String String.Empty

The editor’s HTML markup.

Remarks

Use the Html property to access the ASPxHtmlEditor‘s content.

The ASPxClientHtmlEditor.GetHtml and ASPxClientHtmlEditor.SetHtml methods allow you to get and set editor content on the client side.

Example

<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server" 
    ClientInstanceName="htmlEditor"
    Html="&lt;STRONG&gt;Sample Text&lt;/STRONG&gt;" >
</dx:ASPxHtmlEditor>

The following code snippets (auto-collected from DevExpress Examples) contain references to the Html property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also