Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Line breaks in strings
Message
De
08/03/2007 11:56:22
 
 
À
08/03/2007 11:48:23
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB.NET 1.1
Divers
Thread ID:
01201959
Message ID:
01201962
Vues:
12
Hi Mike,

Remember that the web form is rendered as HTML whcih does not recognize an Environment.NewLine character (\n) so it ignores it. I generally user the Environment.NewLine in the data for storage. Then when rendering to the web form via HTML I convert the NewLine characters to hard HTML breaks (
).

Bill

>So what's the deal with line breaks in strings? (I think I am going to start all my posts off now like Jerry Seinfeld)
>
>I used to append a vbCrLf, but then starting appending Environment.NewLine. Now I am trying to display my line-broken string in an ASP.NET datagrid, but Environment.NewLine doesn't seem to do it. I have to append a
instead to make this work. I don't want to rely on this because it kind of binds my biz logic to ASP.NET.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform