The requested page is not available for the requested platform. You are viewing the content for Default platform.

PastedImageSavingEventArgs.InnerHTML Property

Gets or sets HTML content (inner HTML) that will be rendered inside the HTML tag specified in the PastedImageSavingEventArgs.TagName property.

Namespace: DevExpress.Web.ASPxHtmlEditor

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


public string InnerHTML { get; set; }
Public Property InnerHTML As String

Property Value

Type Description

A string value specifying the HTML content.



The InnerHTML property is not in effect if the PastedImageSavingEventArgs.TagName property is not specified or contains the 'img' tag.

The following example illustrates how to use the ASPxHtmlEditor.PastedImageSaving event and the InnerHTML property to process the pasted binary image and change its render result.

protected void ASPxHtmlEditor1_PastedImageSaving(object source, PastedImageSavingEventArgs e) {
    if (!e.IsValid) {
        e.TagName = "DIV";
        e.InnerHTML = "<img src='broken-image.png' />";
        e.SetStyleAttribute("border", "1px dotted #f00");
See Also