I want to format a c# code in a grid cell. I want to apply italic style to the string strProjectDelivery. But it is not happening.
The below is the csharp string.
strProjectResults = strProjectGoals + "" + strProjectDelivery
I used the Server.HtmlEncode().
strProjectResults = strProjectGoals + Server.HtmlEncode("<i>"+ strProjectDelivery+"</i>");
And the string result is like this,
HighPriorityGoals<i>DeliveredOnTime</i>
Even HtmlDecode is also not working. Please let me know how to handle this.
Thanks in advance.