i am using a list view to display answer on question..
i am taken a
<asp:Panel ID="IdanswerBody" CssClass = "answer-body" runat="server">
<asp:Label ID="lblAnswer" runat="server"></asp:Label>
</asp:Panel>
to display answer in a list view.
i have written codebehind file
//set thre Answer Body. string answer = //.....geting answer from fck editor.... Label lblAnswer = (Label)lvDataItem.FindControl("lblAnswer"); lblAnswer.Text = answer;
i want to display formated answer as user write. but when i display in label it show like that..
<div> <ol> <li>You can write more complex codes in get/set methods, while there is only a single value in fields.</li> <li>Properties makes your code more "OO". Say a class called Person, we can easily guess that there is a property called "Name" in it. But a public field named "Name" is really weird.</li> <li>Some attributes work for properties only(AttributeTargets.Property).</li> </ol> </div>
i want to display formated data....
* You create a library with a public field
* Someone else writes a program that uses your library and accesses that public field
* Now you want to change your field to a public property because you need to validate the input value, or the property has become the result of a calculation, or you want it to throw exceptions because it’s obsolete, or whatever.
* The user tries to upgrade your library, but not the program that uses the library.
how i will do .......
i can't use div inside listview to show answer..