[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 610
  • Last Modified:

How to display some messages in textarea with line breaks?

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
ipjyo
Asked:
ipjyo
1 Solution
 
agriesserCommented:
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
 
ipjyoAuthor Commented:
vbCrLf  is working without response.write

thanks

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now