hi guys, I have a textbox in which i have to write content inside stringbuilder. Following is my stringbuilder.
Dim strString As New StringBuilder()
strString.AppendLine("<table>")
strString.AppendLine("<tr><td>")
strString.AppendLine("<br/><br/>")
strString.AppendLine("<div style=""text-transform: capitalize;""><strong>Dear " & Session("PatientName") & ",")
strString.AppendLine("</strong></div></td></tr>")
strString.AppendLine("<br/><br/>")
strString.AppendLine("<tr><td>")
strString.AppendLine("Your appointment has been confirmed.")
strString.AppendLine("<br /><br />")
strString.AppendLine("Your appointment Time: " + Session("AppTime"))
strString.AppendLine("<br />")
strString.AppendLine("Your appointment Date: " + Session("AppointmentDate"))
strString.AppendLine("</td></tr>")
strString.AppendLine("<tr><td>")
strString.AppendLine("<br/><br/>")
strString.AppendLine("</table>")
I have used textbox.text=strString.ToString().But in that html tags r also displaying. I want to write above in a textbox.What code i hve to write to remove html tags and i want to write in above given html format?