devxlogo

Generate a DHTML Message From a Database

Generate a DHTML Message From a Database

Question:

I am working with Microsoft DHTML and when I insert the content of a field in a DHTML document, I lose part of my message. For example, suppose I write:

Hello (insert first last name) How are you

I obtain:

 Hello Frederic Smith 

However, I lose:

How are you

Answer:
This problem is actually a pretty easy one to solve. The text field () doesn’t accept a carriage return as a valid character, and will automatically truncate any text that is assigned to it that has a carriage return to a single line. To get around it, use the