I'm trying to embed freetextbox control in a Gidview. The purpose is to read the html data from a database and display it formatted the way the editor entered it. I can embed the control into the grid using the following:
The problem I'm having is decoding (server.htmldecode) the stored data and placing it back in freetextbox. Any help would be great.. I've been searching and not finding much. Thanks...
Code:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="NoticeID"
EmptyDataText="There are no data records to display.">
<Columns>
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
<asp:TemplateField HeaderText="Motion" SortExpression="Motion">
<EditItemTemplate>
<FTB:FreeTextBox ID="FreeTextBox" runat="server" Text='<%# Bind("text") %>' RenderMode="Rich" EnableToolbars="True" Height="150px"></FTB:FreeTextBox>
</EditItemTemplate>
<ItemTemplate>
<FTB:FreeTextBox ID="FreeTextBox" runat="server" Text='<%# Bind("text") %>' AutoGenerateToolbarsFromString="False" EnableHtmlMode="False" EnableToolbars="False" Height="150px" RenderMode="Rich"></FTB:FreeTextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
The problem I'm having is decoding (server.htmldecode) the stored data and placing it back in freetextbox. Any help would be great.. I've been searching and not finding much. Thanks...