Use HtmlEncode in Details View TemplateItem Control
<p>I have details view control in my asp.net web form, which on of its item template gets it is value from database, and show this into a richtextbox :</p>

<pre><code>&lt;FTB:FreeTextBox id="txtDescription" runat="Server" AllowHtmlMode="false" Text='&lt;%# (Eval("Description") )%&gt;'
                &gt;
                &lt;/FTB:FreeTextBox&gt;
</code></pre>

<p>but when i click on insert or update button, i get the following error :</p>

<p>A potentially dangerous Request.Form value was detected from the client ....</p>

<p>i tried this : </p>

<pre><code>Text='&lt;%# HttpUtility.HtmlDecode((string)Eval("Description"))%&gt;'
</code></pre>

<p>bu it did not work ethier, and i got the error again.
is there any way except turning validateRequest off.
Would you please help me?</p>
