I'm pulling text from a database and doing the assignment in the code behind (lblMsg=" ") to populate an asp:Label, Unfortunately, the text has some html line breaks in it. For example: Result: <br /> The item must have an associated ID. <br /> Make this change before proceeding. I tried using both asp:Label and asp:Literal and even asp:TextBox (would prefer label or literal). The only thing that shows on the display is Result: (the remainder of the text is missing). I tried using \r\n and also Environment.NewLine in place of the <br />, and this at least allowed it to display all of the text, but it was on one line, and the html items were still present in the text on the display, e.g., Result:\r\nThe item must .....
Is there a way to display the label/literal text message on multiple lines, and without showing the html tags?
Thanks in advance for your help.