<asp:DetailsView ID="DetailsView1" runat="server"
DataSourceID="SqlDataSource1" AutoGenerateRows="False"
DataKeyNames="ID" DefaultMode="Insert" >
…
<asp:TextBox ID="ShortExcerptTextBox" runat="server"
Text='<%#Bind("ShortExcerpt") %>' class="mceEditor"
TextMode="MultiLine"></asp:TextBox>
this is the code i have.
the problem is that i need to somehow HttpUtility.HtmlDecode it there in the #Bind("ShortExcerpt") somehow, but don’t know how.
the original issue is that tinyMCE (rich text editor) encodes the text by itself but does not decode it on read. a long story 😛
so please just, someone, explain, how to HttpUtility.HtmlDecode the text that gets read into #Bind("ShortExcerpt") please?
thnx
I don’t think that you can use
HtmlDecodewithBind.So either try to
HtmlDecodethe TextBox in codebehind:or try to use
Evalinstead(if that is acceptable):Both not tested yet.