Solved

Freetextbox issue

Posted on 2006-11-21
1
882 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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 dynamically set the form action using jQuery.

733 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