Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem to display spaces in an asp file from database

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i have a problem..where, when i want to display a space example as below:

| space |

if say i want to display this word which come from sql database...it will be like this in my asp page..

|space|

i could not find a coding that can display the space...because it will trim the space..

so here i can't show any tab which appear in new paragraph too..

i hope somebody can help my problem..

thankss
 
Note that HTML ignores repeating spaces. If you want to force HTML to display a space, you should use   to make a non-breaking space show up. You can write multiple  's in a row to get multiple spaces to show up. If your database field has multiple spaces in it you can do this

newvalue = replace(oldvalue," "," ")

to convert spaces to non-breaking spaces. There is no tag in HTML for a tab, but you can convert a tab character into multiple  's using the replace function as well.

Hope that helps. Harold Blackorby
hblackorby@scoreinteractive.com
St. Louis, MO
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top