473,939 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Which Type of Control To Use

I want to let users enter text - multiple lines - up to about 800
characters. I want to preserve line breaks and white space, if possible, to
a database. In subsequent sessions, the users should be able to retrieve the
text and see it just as they had previously entered it (line breaks and
all).

Which control should I use?

Thanks!
Nov 19 '05 #1
3 968
You might consider a third party solution such as these:
http://www.textboxpro.net/demo/default.aspx
http://www.richtextbox.com/richtextbox/

Or here are a couple free options:
http://www.exporttechnologies.com/softwareDownloads.asp
http://www.interactivetools.com/products/htmlarea/
http://www.freetextbox.com/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Johnson" <JM**@SpamThis. com> wrote in message
news:%2******** **********@TK2M SFTNGP15.phx.gb l...
I want to let users enter text - multiple lines - up to about 800
characters. I want to preserve line breaks and white space, if possible, to
a database. In subsequent sessions, the users should be able to retrieve
the text and see it just as they had previously entered it (line breaks and
all).

Which control should I use?

Thanks!

Nov 19 '05 #2
Hi Johnson,

Some of the third party rich controls are pretty nice but they can also be a
pain to set up because it takes more than just plopping a simple control on
a form.

However, if you need only plain text there's no need for this sort of stuff.
If you're dealing with plain text have a look here:

http://west-wind.com/weblog/posts/1499.aspx

which has a few routines I commonly use to clean up text from user input.
You can just run that on the input from a TextBox/TextArea.

Regards,

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
http://www.west-wind.com/wwThreads/
----------------------------------
Making waves on the Web
"Johnson" <JM**@SpamThis. com> wrote in message
news:#a******** ******@TK2MSFTN GP15.phx.gbl...
I want to let users enter text - multiple lines - up to about 800
characters. I want to preserve line breaks and white space, if possible, to a database. In subsequent sessions, the users should be able to retrieve the text and see it just as they had previously entered it (line breaks and
all).

Which control should I use?

Thanks!

Nov 19 '05 #3
Thanks Rick! Very useful stuff you have posted.

"Rick Strahl [MVP]" <ri********@hot mail.com> wrote in message
news:Oe******** ******@tk2msftn gp13.phx.gbl...
Hi Johnson,

Some of the third party rich controls are pretty nice but they can also be
a
pain to set up because it takes more than just plopping a simple control
on
a form.

However, if you need only plain text there's no need for this sort of
stuff.
If you're dealing with plain text have a look here:

http://west-wind.com/weblog/posts/1499.aspx

which has a few routines I commonly use to clean up text from user input.
You can just run that on the input from a TextBox/TextArea.

Regards,

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
http://www.west-wind.com/wwThreads/
----------------------------------
Making waves on the Web
"Johnson" <JM**@SpamThis. com> wrote in message
news:#a******** ******@TK2MSFTN GP15.phx.gbl...
I want to let users enter text - multiple lines - up to about 800
characters. I want to preserve line breaks and white space, if possible,

to
a database. In subsequent sessions, the users should be able to retrieve

the
text and see it just as they had previously entered it (line breaks and
all).

Which control should I use?

Thanks!


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1724
by: Ryan Liu | last post by:
I have a user control, it must set a property when it is just created, so I set it in its constructor, which has an parameter to specify the property . For example: public class ExecQuest : UserControl,IOleClientSite,IDocHostUIHandler { public ExecQuest(Type showType) { this.showType = showType; }
4
9710
by: mflll | last post by:
I am looking into the different techniques of handling arrays of edit boxes in Java Script. The first program below works fine. However, are there better ways of doing this, where the person writing the JavaScript doesn't have to pass the index in the "onChange" event name. I thought that one might be able to use "this.value" or compare this as
3
3695
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of html is: <a class="searchsavechanges btn btn3d tbbtn" href="javascript:" style="position:static"> <div id="TBsearchsavechanges">Search</div> </a>
50
4555
by: Juha Nieminen | last post by:
I asked a long time ago in this group how to make a smart pointer which works with incomplete types. I got this answer (only relevant parts included): //------------------------------------------------------------------ template<typename Data_t> class SmartPointer { Data_t* data; void(*deleterFunc)(Data_t*);
0
1580
by: cdelautour | last post by:
Hi there, I am currently working with the property grid and I am implementing an indexed category system (sorts categories via index before alphabetically). I should say that at this point my current solution does work well, however it isn't the prettiest when it comes to specifying the attribute. Which at present looks either like: or I am trying to remove the "typeof(MyClass)" argument via reflection in the constructor of the...
0
10134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11109
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11289
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10658
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9858
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7384
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6296
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.