|
-
May 2nd, 2002, 08:46 AM
#1
Thread Starter
Frenzied Member
ASP and line break
How do I make a line break between these strings in ASP?
Code:
<%
...
var strBody = "Members:"
var strBody1 = "Name: " + navn
var strBody2 = "Company: " + firma
mailer.Body = strBody + strBody1 + strBody2
...
%>
I want the result to be displayed like this:
Members:
Name: ???
Company: ???
instead of
Members: Name: ??? Company:???
-
May 2nd, 2002, 08:49 AM
#2
Frenzied Member
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 2nd, 2002, 08:56 AM
#3
Thread Starter
Frenzied Member
Sorry, I don't understand. Is it a method?
-
May 2nd, 2002, 09:02 AM
#4
Frenzied Member
No, it is a variable holding the value for Carriage Return/Line Feed. I notice that you are using a "var" keyword, so you are not writting a VBScript ASP. I assume it is JScript. So I will further assume that JScript is like JavaScript, in which case...
Code:
var foo = "bar\nblah";
The control sequence \n would be carriage return/line feed.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 3rd, 2002, 12:50 AM
#5
Thread Starter
Frenzied Member
Just what I needed, thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|