Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Placeholders (Mail Merge)

  • Undo (Ctrl+Z)
  • Redo (Ctrl+Y)
  • Bold (Ctrl+B)
  • Italic (Ctrl+I)
  • Underline
  • Strikethrough
  • Align Left (Ctrl+L)
  • Align Center (Ctrl+E)
  • Align Right (Ctrl+R)
  • Back Color
    v
  • Fore Color
    v
  • Insert Table
    v
  • Insert Placeholder
Preview Results
 

The DevExpress ASP.NET HTML Editor (ASPxHtmlEditor) allows end-users to add placeholders to editor content. The placeholders can then be replaced with the required values.

The collection of placeholders available for end-users is accessed by the Placeholders property. End-users can type a placeholder in the text or use the Insert Placeholder dialog, which can be invoked using the Insert Placeholder toolbar button (ToolbarInsertPlaceholderDialogButton). The Insert Placeholder dialog allows you to insert and change placeholders.

To replace placeholders with the required values, use the client-side ReplacePlaceholders or server-side ReplacePlaceholders method.

In this demo, placeholder values are gotten from a database. You can modify a document template and preview the results for different persons (database records).

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxHTMLEditorDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxHTMLEditorDemos