ASP.Net literal. Insert html

murekh

New Member
I have simple literal on my page.\[code\]<asp:Literal ID="litDescription" runat="server"></asp:Literal>\[/code\]When I am trying to set the following text to the literal: \[code\]<p><div>Some Text</div></p>\[/code\]in my browser's markup I see \[code\]<p></p> <div>Some Text</div><p></p>\[/code\]Why there are two 'p' tags? I need to have \[code\]<p><div>Some Text</div></p>.\[/code\]
 
Back
Top