Solved

How to display some messages in textarea with line breaks?

Posted on 2008-06-23
2
599 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
2 Comments
 
LVL 14

Accepted Solution

by:
agriesser earned 500 total points
Comment Utility
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
Comment Utility
vbCrLf  is working without response.write

thanks

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
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 …
This video teaches users how to migrate an existing Wordpress website to a new domain.
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.

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now