Beispiel #1
0
        // Replaces placeholders specified as a dictionary
        protected void Insert_Signature(object sender, EventArgs e)
        {
            string html    = HtmlEditor.Html;
            string newHtml = ASPxHtmlEditor.ReplacePlaceholders(html, PlaceholdersForSignature);

            HtmlEditor.Html = newHtml;
        }
Beispiel #2
0
        // Replaces placeholders specified as an object
        protected void Insert_Date(object sender, EventArgs e)
        {
            PlaceholdersForDate placeholdersForDate = new PlaceholdersForDate();
            string html    = HtmlEditor.Html;
            string newHtml = ASPxHtmlEditor.ReplacePlaceholders(html, placeholdersForDate);

            HtmlEditor.Html = newHtml;
        }
 private void WriteTextWithPlaceholders()
 {
     ((IPlaceHoldersProvider)CurrentObject).TextWithPlaceholders = ASPxHtmlEditor.ReplacePlaceholders((string)ControlValue, ((IPlaceHoldersProvider)CurrentObject).TargetObject);
 }