Solved

How to display some messages in textarea with line breaks?

Posted on 2008-06-23
2
607 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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.

705 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