473,327 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

How to maintain Text Format?

Hello,

I created a page with one form and 10 Input Text fields.
The Form data is added to an Access Database when "OK" button is
pressed.

One of the Form's Input Text has more than one line.
The user uses this to write its Curriculum Vitae.
The Curriculum Vitae is inserted in the MEMO type "CV" field.

However, all the data is placed in the same line.

Example - The visitor inserts this:
I am a webdesigner.
O started working in year 2000.
I work in ASP and Flash.

And I get this in the database:
"I am a webdesigner.O started working in year 2000.I work in ASP and
Flash."

What should I do to maintain the format of the inserted text?

Thank You,
Miguel

P.S: I am using DW MX 2004 (I use Insert Record Behavior), ASP.Net / VB.

Nov 18 '05 #1
1 2230
Hi,

if you use ASP.NET's TextBox (and it has Wrap property set to true by
default) it should save also line breaks along with the text. If they are
displayed in database (Enterprise manager etc) is up to the tool but they
should be stored pretty much without anything special.

If you put the text to display on page (not TextBox but Label for example)
from database, you'd of course need to replace line breaks with <br> tags so
that they are visible (HTML browser ignores linebreaks when they are within
HTML).

You can try adding wrap="hard" to the control's Attributes collection (e.g
txtBox1.Attributes("wrap")="hard" , you can't with declarative syntax
because Wrap property already exists) so that carriage returns and line
feeds are submitted for sure. As I said, they should be sent if Wrap
property (the boolean property) isn't set to False for TextBox, though it
seems with decompiling that wrap property wouldn't be set to be soft or hard
(soft is default), so to be sure you can add the wrap manually.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"Miguel Dias Moura" <we****@27NoLampsSpam.com> wrote in message
news:OH**************@TK2MSFTNGP10.phx.gbl...
Hello,

I created a page with one form and 10 Input Text fields.
The Form data is added to an Access Database when "OK" button is
pressed.

One of the Form's Input Text has more than one line.
The user uses this to write its Curriculum Vitae.
The Curriculum Vitae is inserted in the MEMO type "CV" field.

However, all the data is placed in the same line.

Example - The visitor inserts this:
I am a webdesigner.
O started working in year 2000.
I work in ASP and Flash.

And I get this in the database:
"I am a webdesigner.O started working in year 2000.I work in ASP and
Flash."

What should I do to maintain the format of the inserted text?

Thank You,
Miguel

P.S: I am using DW MX 2004 (I use Insert Record Behavior), ASP.Net / VB.

Nov 18 '05 #2

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

Similar topics

2
by: Trader | last post by:
Hi, I'm trying to use Mark Hammond's win32clipboard module to extract more complex data than just plain ASCII text from the Windows clipboard. For instance, when you select all the content on...
27
by: Eric | last post by:
Assume that disk space is not an issue (the files will be small < 5k in general for the purpose of storing preferences) Assume that transportation to another OS may never occur. Are there...
1
by: Julie | last post by:
I have the need to preserve the precision of a user-entered number, but that needs to be stored in a (non-string) floating point variable (such as double or decimal). Due to the internal...
7
by: Tom wilson | last post by:
I have created a very simple example that doesn't work. Form1 contains a textbox and a button: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
7
by: Andrew Robinson | last post by:
I have a treeview control that I use as a menu & navigation control within a master page. The nodes for this control are loaded from a database which contains the text and url of each like and the...
1
by: SevDer | last post by:
Hi, I would like to know, if it is possible to maintain affinity by having a webgarden for our ASP.NET application in multi CPU server? And of course if possible without or minimal code change...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
1
by: dbuchanan | last post by:
I want to fill a textbox or a label or with lines from a listbox. I want to preserve the lline for line as it comes from the list box. I do not want the test to run-on. I suppose it is okay to wrap...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
In the Registry at HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Jet \ 4.0 \ Engines \ Text the default key for Text Format is: "Format" = "CSVDelimited" I can use the following OleDB...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.