I have done:
MyLabel.Text = "21 Ebberston Terrace" & vbCrLf & "Hyde Park" & vbCrLf & "Leeds" & vbCrLf & "LS6 4UA"
Yes the text gets displayed with vbCrLf replaced with " " (space)...how to I multiline it?
WokaIf 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
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment