Guys,
Why isn't this code working ? It should be reading text from rows in a datatable, then appending the text to a string along with a couple of line feeds for clarity. I'm then setting the label.text (guidetext) to the string.
It is showing the text from the rows, but as one string without any linefeeds.
I've also tried VbCrLF's too.
Cheers
Bob
VB Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here Dim sText As String Dim dt As New DataTable db.Guidelines.Fill(dt, CType(Session("Section"), Integer)) For Each row As DataRow In dt.Rows sText += vbNewLine & vbNewLine & row("Text") Next guidetext.Text = sText End Sub




Reply With Quote