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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a text box for a Bulletin board input 1

Status
Not open for further replies.

oddball

Technical User
Mar 17, 2000
64
0
0
GB
How do i get the input typed in a multiline text box to register carraige returns as <br>'s when displaying as html in the resulting 'thread' datalist.

Is there a simple encoding/conversion method or do i have to recognise and replace the carraige returns at say the stored procedure level?

cheers,

si
 
If you were to replace crlf with &quot;<br>&quot; than I would use split and join:

Dim Str As String = &quot;line one&quot; & vbCrLf & &quot;line 2&quot; & vbCrLf & &quot;line 3&quot; & vbCrLf
Dim arrTmp() As String = Split(Str, vbCrLf)
Str = Join(arrTmp, &quot;<br>&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top