Solved

Freetextbox issue

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

758 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

22 Experts available now in Live!

Get 1:1 Help Now