[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How to format the content of a textbox

Posted on 2008-10-06
9
Medium Priority
?
625 Views
Last Modified: 2013-11-07
HI

I am developing an ASP.net (VB.net) website that it takes data using a form, what I want is to make a textbox WYSIWYG, in other words, that the database stores the information plus the distribution of the text (tabs, carriage returns, etc) in order to show it as the same way that it was captured.

The purpose of this is to keep data listed correctly, like this:
1. ELEMENT A
2. ELEMENT B

and avoid something like this:
1. ELEMENT A2. ELEMENT B


Thanks in advance.

0
Comment
Question by:dimensionav
[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
  • 5
  • 4
9 Comments
 
LVL 14

Expert Comment

by:dfu23
ID: 22651160
Well, let's use the text box used here at Experts Exchange as an example and see what it is doing ...
  • They use an IFRAME that has a property of contenteditable
  • They allow for simple modification of the text formatting, like:
    1. bold
    2. italic
    3. underline
  • The formatting is captured as HTML
Would that be what you want to do as well?
0
 

Author Comment

by:dimensionav
ID: 22651410
dfu23:

You´re right, that´s exactly what I want to do.

Would be possible that you bring me some code or an example for better understanting.

Thanks
0
 
LVL 14

Accepted Solution

by:
dfu23 earned 1000 total points
ID: 22651520
I would suggest using a project that already does the grunt for you, like:

http://www.fckeditor.net/
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Integration/ASP.NET

FCK Editor is an open source project on SourceForge.net which has been around for a while and is rather popular. I'm sure that there are tons more out there but this would be my starting point ...
0
Independent Software Vendors: 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!

 

Author Comment

by:dimensionav
ID: 22651727
The product seems to be quite useful, I got an OFF Topic extra question:

Considering that the component is regulated under the GPL, LGPL and MPL, what kind of cares should I take in order to distribuite it as a part of my website applications.

Thanks again
0
 

Author Comment

by:dimensionav
ID: 22819094
dfu23:

Any coments to my last question ?

Thanks.
0
 
LVL 14

Expert Comment

by:dfu23
ID: 22822138
Ah, sorry about the delay there. I believe that there is a basic "cheat sheet" out there on what the license means concerning how it is used. Usually, the idea is that if you simply use the product and do not modify/enhance the product itself then you are not required to do anything ... and this can vary between whether or not it is used within a commercial or non-commercial application.

If there is value added to the product then it is usually requested that you share that back to the project (open source community) in some for or fashion. Does that make sense?

I'll take a closer look at the FCK site and see if I can find out for sure what they are saying about using their product.
0
 

Author Comment

by:dimensionav
ID: 22855979
Should I keep open this question or Do you believe that would be better to open a new question?
0
 
LVL 14

Expert Comment

by:dfu23
ID: 22856983
May I ask how you are intending on using the FCK Editor in your project? Do you see the need to modify the source to pull off what you want?

If the answer to that is no then you should be just fine under their triple licensing scheme.
0
 

Author Closing Comment

by:dimensionav
ID: 31503457
Thank you very much dfu23
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

656 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