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.