Newline in Validator ErrorMessage

S

Steve

How do I insert a newline char in the message field of a
validator control in the VS.NET design mode. There is no
problem doing it in the code-behind by using \n. But in
the VS design mode, I use a series of \n it only takes the
first \n. For example:

AAAAAAAAA\nBBBBBB\n\nCCCCCCCCC\nDDDDDDDDD

The javascript prompt will result as
AAAAAAAAA
BBBBBB\n\nCCCCCCCCC\nDDDDDDDDD

not

AAAAAAAAA
BBBBBB

CCCCCCCCC
DDDDDDDDD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top