473,464 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Space between two words is removed while displaying on lebel

1 New Member
I have form in which I have an asp.net Textbox and Level.
I am saving data with spaces (e.g. test test) and when I retreive this data from database and display the same on the level it removes spaces between the words and shows result like (test test).
Jun 13 '07 #1
6 4823
kenobewan
4,871 Recognized Expert Specialist
Welcome to the site. I don't see the difference between the two results.
Jun 13 '07 #2
Frinavale
9,735 Recognized Expert Moderator Expert
I have form in which I have an asp.net Textbox and Level.
I am saving data with spaces (e.g. test test) and when I retreive this data from database and display the same on the level it removes spaces between the words and shows result like (test test).
This could possibly be because HTML ignores whitespace...
Jun 13 '07 #3
nateraaaa
663 Recognized Expert Contributor
This could possibly be because HTML ignores whitespace...
Before saving your data to the database try doing a string.Replace and replace a space with &nbsp.

string.Replace(" ", "&nbsp");

Nathan
Jun 13 '07 #4
radcaesar
759 Recognized Expert Contributor
I was not clear on the question ? It looks string has space between them (May be like he types)
Jun 13 '07 #5
Frinavale
9,735 Recognized Expert Moderator Expert
I was not clear on the question ? It looks string has space between them (May be like he types)
The reason you can't see the difference between them is because HTML ignores white space...you will see the difference when you reply to the question.
Jun 13 '07 #6
radcaesar
759 Recognized Expert Contributor
I have form in which I have an asp.net Textbox and Level.
I am saving data with spaces (e.g. test test) and when I retreive this data from database and display the same on the level it removes spaces between the words and shows result like (test test).

Hey here is the solution

http://www.w3.org/TR/REC-CSS2/text.html

:)
Jun 13 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Steve K | last post by:
Hi, The site I've just created, when tested on a windows PC has an unwanted white space (about 2-4 pixels high) in between two tables. I would like there to be zero space there. Here is the test...
7
by: ms_chika | last post by:
hi to all! I just want to ask if how could i validate a text or string if it has a space between characters? Thanks in advance. *** Sent via Developersdex http://www.developersdex.com ***...
8
by: Joseph | last post by:
I have a textBox that people writes stories in it. They can use for format. I have Aspell installed on the server, so people can make correction to their text. Sometimes, they forget to add a...
28
by: Andreas Prilop | last post by:
Jukka reports on http://www.cs.tut.fi/~jkorpela/chars/spaces.html that Internet Explorer 6 fails on the "zero width space" U+200B ​ Is this observation still valid? For which versions of MS...
3
by: Zheng Da | last post by:
Program received signal SIGSEGV, Segmentation fault. 0x40093343 in _int_malloc () from /lib/tls/libc.so.6 (gdb) bt #0 0x40093343 in _int_malloc () from /lib/tls/libc.so.6 #1 0x40094c54 in malloc...
1
by: thermate | last post by:
diapers, wig, knife ... guys i am dying of laughter, someone help me ... Seems like the Neoconish spirit of Bush/Cheney has permeated the whole country thru the cell phones and cause the yanks...
4
by: joanna | last post by:
Hi, I'm using preg_replace to strip out a bunch of unwanted stuff from the database. However the results seem to bunch up. Here's what I'm doing $old = htmlspecialchars($row); $new =...
0
by: Turbot | last post by:
Hello there, I have a .net user control that I am displaying on a web page using the following syntax for my object tag: <object id='objLauncher' name='objLauncher' Style='width:600px; height:...
2
code green
by: code green | last post by:
I am trying to write a simple function that will take a string containing an address line or business name and return it nicely formatted. By this I mean extra spaces removed and words capitalised....
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.