Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting a string for pager/email
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01182052
Message ID:
01182172
Views:
15
>>
>>Did you try to use Environment.Newline instead of "\n"?
>
>I have never used this syntax. Could you please tell me if the following would be correct use of Environment.NewLine instead of "\n "?:
>
>
>PageMessage = "BLD: " + this.Building.Text.ToString() + Environment.NewLine + "ROOM: " + this.Room.Text.ToString()
>
>
>Thank you.

That is correct. If you are worried about performance and memory and stuff like that (if this is in a (tight) loop) you should use a StringBuilder object instead, but otherwise it is the correct syntax. Please let me know if you want me to post something about using a StringBuilder.

Einar
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform