|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
textarea problem
I have a textarea whose contents I am displaying on another page. However, carriage returns are not displaying only a continuous line of text..I have set the multiline attribute to true but this is not working..
Please help |
|
#2
|
||||
|
||||
|
Code:
newText = crlfToBr(Request.Form("textarea"))
Response.write(newText)
Function crlfToBr(stringPayload)
crlfToBr = Replace(stringPayload, chr(13) & chr(10), "<br>")
End Function
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > textarea problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|