Solved

How to display some messages in textarea with line breaks?

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
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.

809 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