Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxHtmlEditor - How to specify placeholders using dictionary and object structures

$
0
0

This example demonstrates how to replace placeholders with data specified as a dictionary and as an object. For this purpose, we use two overloads of the ReplacePlaceholders server-side method.

In this example, we have created Insert Signature and Insert Date buttons.

When the Insert Signature button is clicked, the FirstName and LastName placeholders are replaced using the ReplacePlaceholders(string html, Dictionary <String, String> placeholders) method. This method gets the placeholders contained in a dictionary.

When the Insert Date button is clicked, the DateNow and TimeNow placeholders are replaced using another ReplacePlaceholders(string html, object placeholders) method overload. This method gets the placeholders contained in an object.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>