Firefox, Multiline Textbox Issue

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2006
Posts: 169
Reputation: ptaylor965 is an unknown quantity at this point 
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Firefox, Multiline Textbox Issue

 
0
  #1
Dec 28th, 2008
Hi have a form with a Multiline Textbox and a Span

I save the text and load into a <span>

  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
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 169
Reputation: ptaylor965 is an unknown quantity at this point 
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Re: Firefox, Multiline Textbox Issue

 
0
  #2
Dec 28th, 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.
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC