Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<BR> & Newline

Status
Not open for further replies.

stoggers

Vendor
May 30, 2001
93
US
Hi,

I use Response.Write with embedded <BR> tags to write out a formatted page that I want users to cut & paste into a document.

However, I find that, although the text appears correctly on the screen (due to the <BR>'s) the cut text appears as a single stream of characters.

How do I ensure that they can paste exactly what appears on the screen?

Thanks,

Stoggers.
 
Were did you try to paste text?
Usually on the notepad it will apear corectly unless you paste in in an text box. ________
George, M
 
I can't recreate this problem. Create a test page with the below code and try this. I have copy/pasted into notepad and Word with no problems and all line breaks intact:

Code:
<%=&quot;Here is line 1<br>And here is line 2<br>Oh, and here is another line&quot;%>
--James
 
Hi,

Just discovered what is causing my problem - the text is within <PRE> & </PRE> and this seems to cause the cut & paste to behave strangely...

Stoggers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top