Hi,
In the table t_contents of database MySql version 8.0.17 I have stored in field/column contents this text that contains HTML code
<tr>
<td nowrap="nowrap" style="width:64px;height:20px;">
<p align="center">56,91%</p>
</td>
<td nowrap="nowrap" style="width:64px;height:20px;">
<p align="center">68,40%</p>
</td>
</tr>
<tr>
<td nowrap="nowrap" style="width:131px;height:20px;"> </td>
<td nowrap="nowrap" style="width:64px;height:20px;"> </td>
<td nowrap="nowrap" style="width:64px;height:20px;"> </td>
</tr>
On the GridView markup page aspx -using ASP.NET C#- I have set
<asp:TemplateField HeaderText="Test"
ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:Label ID="lbtest" runat="server"
Text='<%# Server.HtmlDecode(Eval("contents").ToString()) %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtext"
runat="server"
TextMode="MultiLine"
Text='<%# Server.HtmlDecode(Eval("contents").ToString()) %>'></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
But in the return of GridView I have
How to do resolve this?