I have done:
Yes the text gets displayed with vbCrLf replaced with " " (space)...how to I multiline it?Code:MyLabel.Text = "21 Ebberston Terrace" & vbCrLf & "Hyde Park" & vbCrLf & "Leeds" & vbCrLf & "LS6 4UA"
Woka
Printable View
I have done:
Yes the text gets displayed with vbCrLf replaced with " " (space)...how to I multiline it?Code:MyLabel.Text = "21 Ebberston Terrace" & vbCrLf & "Hyde Park" & vbCrLf & "Leeds" & vbCrLf & "LS6 4UA"
Woka
If you look at the label in the generated HTML it is simply a span tag. Therefore you need to use <br> (or <br /> if you are using XHTML) instead of vbCrLf as it doesn't automatically convert to HTML.
HTH
DJ
Yea, it seems that is the case.
I am amazed though that the Text property of the label doesn't automatically replace vbCrLf with <br>
Woka
Yeah you would have thought it would seeing as the Text is always on an HTML page!
DJ