Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Email Template - Using stringbuilder however not converting string to HTML View modes: 
User avatar
Member
Member
vferguson-etain-software - 10/25/2010 3:55:29 AM
   
Email Template - Using stringbuilder however not converting string to HTML
Hi there,

I currently have a problem where I cannot display items which have been built up within a stringbuilder:

sb.AppendFormat("<td>{0}</td>", Answer1);
sb.AppendFormat("<td>{0}</td>", Answer2);
sb.AppendFormat("<td>{0}</td>", Answer3);

Within my email template, I have the macro {answer} which returns the <td> and answers successfully however it is not in html format it is returned like so: <td>answer1<td>
instead of:
this is an answer - which would be within a table

Has anybody got any ideas?

Many Thanks,
Vivian

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 11/2/2010 2:50:21 AM
   
RE:Email Template - Using stringbuilder however not converting string to HTML
Hi Vivian,

Are you using a custom macro in your template?
If yes, could you please try to add following line into it?

sender.AllowParameters = false;

Using above code tags should behave correctly.

Best regards,
Ivana Tomanickova