Hi Craig. Thanks for the response.
The reason I wasn't using .InnerHTML is that then I have to use
Server.HTMLEnco de() on the text I want to display ...
.... and I've had strange results in the past using that function.
MySpan.InnerHTM L = Server.HTMLEnco de("some stuff<br>some other stuff")
works fine ... but more complex text can get funky results.
"Craig Deelsnyder" <cd******@NOSPA Myahoo.com> wrote in message
news:uo******** *****@TK2MSFTNG P11.phx.gbl...
John A Grandy wrote:
when setting the InnerText property of a tag such as <span> , how to
force a line break?
Span1.InnerText = "some stuff" & vbCrLf & "some more stuff"
doesn't work ... the vbCrLf just shows up as a null-string
I think you want to use the .InnerHtml property:
Span1.InnerHtml = "some stuff<br>some more stuff"
remember the crlf doesn't do anything in HTML (well, shouldn't, even
though sometimes IE adds a little space).....you need a <BR>
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET