Solved

Freetextbox issue

Posted on 2006-11-21
1
879 Views
Last Modified: 2012-08-14
I am implementing an .net application (vb) to update HTML content.

Here is the situation:

1.) currently, I have an asp page that displays content from a database based on what the user selects.  It is important to note that the content displays fine on this page.

2.) in my application I have dropped the free htmltextbox onto my work area and hooked it up to edit content.

3.) when I select content to edit, it always displays with lots of spaces inbetween lines; almost as if somone has hit the carriage return several times for each line.

4.) if I save what shows up in the free textbox as it is displayed in the free text box, my ASP page then shows the content with a lot of spaces inbetween each line.

Is there some way to programatically remove all of these spaces when the freetextbox loads so that I do not need to manually delete these lines for each topic I modify?
0
Comment
Question by:w3lgi
1 Comment
 
LVL 5

Accepted Solution

by:
pdotnet earned 500 total points
ID: 17987755
Would you be able to post a sample of some of the data that you're binding to the .Text property of the freetextbox control?  I'm curious if the extra carriage returns are in the data itself and that possibly the freetextbox control is interpreting them as paragraph <p> html tags which look like double line break by default.  Set a breakpoint just before you write the string data to the .Text property and paste the string data here as a comment.

Look for repeated "\n" linebreak text.  If you see double line breaks like "\n\n" you could programmatically reduce that by using a .Replace(@"\n\n", @"\n") on the string.

The other thing you could try is on the FreeTextBox attributes in your aspx page, try changing BreakMode to "LineBreak" instead of "Paragraph"
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question