Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Freetextbox issue

Posted on 2006-11-21
1
Medium Priority
?
894 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 1500 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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
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.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

636 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