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

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,062
Members
48,769
Latest member
Clifft

Latest Threads

Top