Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

carriage return

Status
Not open for further replies.

tek2002

Programmer
Aug 21, 2001
67
US
I have a question about carriage returns.

txtOutput.text = "1" & vbcrlf & "2" & vbcrlf & "3"

When i use the above code in a vb.net web application,
the output is displayed in 1 line: 123 instead of
the expected 3 lines:
1
2
3

I tried to use &quot;<br/>&quot; as it works with c# web applications but it does not work here....i have placed this in the vb.net forum as well.

Can anyone tell me what i should do to have the output diplayed over more than 1 line.

Thanks
 
This may or may not seem obvious, but is the mode property set to multiline? I'm assuming by the prefix txt that it is a textbox. Another option might be to try using chr(13) instead of vbcrlf, although I think it translates to the same thing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top