Solved

Freetextbox issue

Posted on 2006-11-21
1
875 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now