943,866 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 2209
  • ASP.NET RSS
Dec 28th, 2008
0

Firefox, Multiline Textbox Issue

Expand Post »
Hi have a form with a Multiline Textbox and a Span

I save the text and load into a <span>

ASP.NET Syntax (Toggle Plain Text)
  1. 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
Last edited by ptaylor965; Dec 28th, 2008 at 2:14 pm. Reason: added VS2008
Reputation Points: 16
Solved Threads: 19
Junior Poster
ptaylor965 is offline Offline
169 posts
since Oct 2006
Dec 28th, 2008
0

Re: Firefox, Multiline Textbox Issue

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.
Reputation Points: 16
Solved Threads: 19
Junior Poster
ptaylor965 is offline Offline
169 posts
since Oct 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Migrating from VB6 to ASP.Net from scratch
Next Thread in ASP.NET Forum Timeline: while converting anything into string where to use GetInt32





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC