Wednesday, July 06, 2005

Replacing "Enter", vbCrLf, vbNewLine into HTML Recognized "Enter"

One method to do it,
Request("MyTextBox"), vbCrLf, " <#br> "

As you can see, Request("Mytextbox"), is the string that you wants to find for the "Enter" or vbNewLine. The vbCrLf is the key to match for the "Enter" syntax, and the last one, would replace the "Enter" with html recognized, "Enter".

This is useful when you want to display user entered multiline text into the form via response.write or onto label.

Your Ad Here