No line breaks in returned data

You’ll need to replace those line break characters for HTML-recognizable characters..
For instance – - –
let’s say you have assigned the data from that field to the variable named sData….

An enter key would equate to a vbcrlf (carriage return/line feed) – - SO – since a browser can’t recognize this, but it can recognize “<br>” – - you would do this:

sData=sData.Replace(vbcrlf, “<br>”)

then – label1.text=sData

There are many different ways to do this, but this is the general way it’s done

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>