I'm trying to read information from a database and combine it into a string character and then display that string character in a text box.
In vb you'd use vbcrlf which isn't putting the line returns in. I've looked this up on other sites and see the response to replace vbcrlf with <br> or even <br/> and I've tried both but neither put a line break in the text in the text box.
My code is..
In vb you'd use vbcrlf which isn't putting the line returns in. I've looked this up on other sites and see the response to replace vbcrlf with <br> or even <br/> and I've tried both but neither put a line break in the text in the text box.
My code is..
Code:
While reader.Read
ndate = reader.GetValue(1)
notes = notes & ndate.ToShortDateString & " - " & reader.GetValue(0).ToString & vbCrLf & reader.GetValue(2).ToString & vbCrLf
End While
conn.Close()
conn.Dispose()
Replace(notes, vbCrLf, "<br/>")
Me.txtWONotes.Text = notes