Hi have a form with a Multiline Textbox and a Span

I save the text and load into a <span>

lblSpan.InnerHTML = txtMLBox.Text.ToString.Replace(Environment.NewLine, "<br/>")

The Span looks fine in IE

but If I do this in Firefox the Environment.NewLine is not being converted


I am using Visual Studio 2008

I have found the problem.


I am using an Ajax UpdatePanel and this was causing the issue.


I have added the Save Button to the NON-async triggers list to stop the issue.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.