Chris Leffer
2004-09-18 04:11:45 AM

Hi.

How can I create a multiline message for use in a ValidationSummary
control? In Javascript I would create an alert this way:

alert('Firstline.\nSecond line.')

I tried to pass this text as the error message of my control, but the
ValidationSummary shows the \n escape on the string.

Is it possible?

Regards,
Chris Leffer

*** Sent via Developersdex www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Re: ValidationSummary and multiline messages

=?Utf-8?B?QmFycnkgRm9ycmVzdA==?=
2004-10-14 06:49:00 AM

Chris,
Substitute a '<br>' for the \n and the validation summary message will show
the carriage return.

"Chris Leffer" wrote:

>Hi.
>
>How can I create a multiline message for use in a ValidationSummary
>control? In Javascript I would create an alert this way:
>
>alert('Firstline.\nSecond line.')
>
>I tried to pass this text as the error message of my control, but the
>ValidationSummary shows the \n escape on the string.
>
>Is it possible?
>
>Regards,
>Chris Leffer
>
>*** Sent via Developersdex www.developersdex.com ***
>Don't just participate in USENET...get rewarded for it!
>