473,385 Members | 1,312 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,385 software developers and data experts.

displaying text on asp page from access

Hi there

I've created a db field with Memo type, and I have stored some text with
carriage returns (no html) So the 3 words start on a differnt line. In
access this displays correctly ( each word starts on a new line).
However when I display these on a web page all the words appear on the same
line.

I need the words to be displayed on a seperate line.

ANY HELP APPECIATED.

thanks
Mar 16 '06 #1
3 1502
"raj chahal" <in**@digitise.info> wrote in message
news:#t**************@TK2MSFTNGP14.phx.gbl...
Hi there

I've created a db field with Memo type, and I have stored some text with
carriage returns (no html) So the 3 words start on a differnt line. In
access this displays correctly ( each word starts on a new line).
However when I display these on a web page all the words appear on the same line.

I need the words to be displayed on a seperate line.

ANY HELP APPECIATED.


sText = {your text on multiple lines}

<%=Replace(sText,vbCrLf,"<br>")%>

or

<pre>
<%=sText%>
</pre>

Mar 16 '06 #2
Thanks for your help.

Can I also give the user to make a piece of text bold without a 'rich text
editor'. If not any recommendations?
Thanks in advance..

"McKirahan" <Ne**@McKirahan.com> wrote in message
news:TK******************************@comcast.com. ..
"raj chahal" <in**@digitise.info> wrote in message
news:#t**************@TK2MSFTNGP14.phx.gbl...
Hi there

I've created a db field with Memo type, and I have stored some text with
carriage returns (no html) So the 3 words start on a differnt line. In
access this displays correctly ( each word starts on a new line).
However when I display these on a web page all the words appear on the

same
line.

I need the words to be displayed on a seperate line.

ANY HELP APPECIATED.


sText = {your text on multiple lines}

<%=Replace(sText,vbCrLf,"<br>")%>

or

<pre>
<%=sText%>
</pre>


Mar 17 '06 #3
"raj chahal" <in**@digitise.info> wrote in message
news:OT*************@TK2MSFTNGP10.phx.gbl...
Thanks for your help.

Can I also give the user to make a piece of text bold without a 'rich text
editor'. If not any recommendations?
Thanks in advance..

"McKirahan" <Ne**@McKirahan.com> wrote in message
news:TK******************************@comcast.com. ..
"raj chahal" <in**@digitise.info> wrote in message
news:#t**************@TK2MSFTNGP14.phx.gbl...
Hi there

I've created a db field with Memo type, and I have stored some text with carriage returns (no html) So the 3 words start on a differnt line. In
access this displays correctly ( each word starts on a new line).
However when I display these on a web page all the words appear on the

same
line.

I need the words to be displayed on a seperate line.


[snip]

You'd have to know which word or words they want to be in bold.

One way is to have them start each line they want in bold with a period;
(or some other special character -- change the value of "cCHR" to it).

Then you could do this:

<%
Const cCHR = "."
sText = {your text on multiple lines}
aTemp = Split(sText,vbCrLf)
For iTemp = 0 To UBound(aTemp)
sTemp = aTemp(iTemp)
If Left(sTemp,1) = cCHR Then
aTemp(iTemp) = "<b>" & Mid(sTemp,2) & "</b>"
End If
Next
sText = Join(aTemp,"<br>")
%>

<%=sText%>

The above is untested -- let me know if there's a problem.
Mar 17 '06 #4

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

Similar topics

9
by: matthiasjanes | last post by:
Hi, Maybe someone of you can help me. I'm trying to display an image in memory(open file) with an cgi script - but it want work proberly: I'm running an Cgi webserver (CgiServerGui.py). ...
2
by: Paul M | last post by:
Hi there, i hope someone can help me out here.. I have a input screen where i want the user to enter text in 2 different languages, english and macedonian. How is it possible to make the...
14
by: Rahul Chatterjee | last post by:
Hello All I have an asp page in which I am performing the following 1. Querying a database view 2. Returning rows in to a recordset. 3. Looping thru the recordset and printing the data 4....
14
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file...
0
by: Wynter | last post by:
RE: from Displaying a Document using the ASPNET user account to the Client Browser discussion (3/2/2004 Buddy Thanks for helping me on getting the document to display. But now I am left with a...
2
by: Carole MacDonald | last post by:
There have been lots of posts on this topic, but I haven't been able to apply any of the suggestions to my situation. I have an .aspx page with a form on it that has several submit buttons on...
4
by: Jack | last post by:
Hi, I have the following Access DDL statment from which I generated a access table: CREATE TABLE TEST1 (ID COUNTER, NAME TEXT(50), STORAGESPACEASSIGNED TEXT(50) )
6
by: Zeba | last post by:
Hi, I have a page with a calendar and two datalist items - one containing month values and the other, year values. Depending on the month/year value chosen ( in text/string format ) I should be...
13
by: David W. Fenton | last post by:
I've been struggling the last two days with something I thought was very easy, which is to open a web page with a form on it and populate the form with data passed in a query string (either POST or...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.