[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to display some messages in textarea with line breaks?

Posted on 2008-06-23
2
Medium Priority
?
609 Views
Last Modified: 2008-06-23
I have  a text area and I need to display some items in text area with one item per line.
I have the code as in attached.
I want to display one record per line.
Please correct my code.

Thanks for youe help


do while not RsError.EOF
RSerrString = RSerrString & RsError("SecNo") & "not found in   Database" 
RSerrString = RSerrString & Response.Write("<br>")
RsError.MoveNext
loop
 
<TEXTAREA rows=5 cols=40 id=ErrMessage name=ErrMessage><%=RSerrString %></TEXTAREA>

Open in new window

0
Comment
Question by:ipjyo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
agriesser earned 2000 total points
ID: 21850096
Replace the "<br>" with a linebreak (vbCrLf):
do while not RsError.EOF
RSerrString = RSerrString & RsError("SecNo") & "not found in   Database" 
RSerrString = RSerrString & Response.Write(vbCrLf)
RsError.MoveNext
loop
 
<TEXTAREA rows=5 cols=40 id=ErrMessage name=ErrMessage><%=RSerrString %></TEXTAREA>

Open in new window

0
 

Author Comment

by:ipjyo
ID: 21850399
vbCrLf  is working without response.write

thanks

0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question