DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Firefox, Multiline Textbox Issue (http://www.daniweb.com/forums/thread164621.html)

ptaylor965 Dec 28th, 2008 2:12 pm
Firefox, Multiline Textbox Issue
 
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

ptaylor965 Dec 28th, 2008 2:54 pm
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.


All times are GMT -4. The time now is 11:07 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC