Author: kevinchkin | Posted on: 11/19/2008 8:53:32 AM | Views : 318

 Hello Everyone,
 I have this literal control on my VB .net page. I enter some text into it and it put some '=20' and '=0' on line breaks and some random places. 
I just want to show my text inside the control in HTML format. 
Here is my code: 
 
        Dim Message As Label = New Label()
        Message.Text = "<br><br><font size=""4"" face=""Times New Roman""><b>To:</b>" + "  " + To + " &nbsp;&nbsp;&nbsp; " + "<b>Date:</b>" + " " + date + ""
       Dim litHeader As LiteralControl
       litHeader = New LiteralControl("<div style=""text-align:left;border:solid 2px  #104e8b;background-color:snow; ""> ...

Go to the complete details ...