Posted on: 11/21/2012 12:47:22 AM | Views : 490

I am saving my user input data into database in encoded format using Server.HtmlEncode. It will save in database like this:
<span style="color: #0; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #fafafa; display: inline ! important; float: none;">What are Alkali Metals Alkaline Earth Metals Halogens and Noble Gases</span>
Now i am showing this Field in FormView ItemTemplate like this:<asp:Label ID="lblPost" runat="server" Text='<%# Eval("FieldName") %>'/>. But in browser it is showing like this:
&lt;span style="color: #0; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 1 ...

Go to the complete details ...