Philippe Posted January 11, 2006 Share Posted January 11, 2006 I have a form with a textarea on it, after it is submitted I want to send a mail with that same textarea with the same value and format, carriage returns included, but the carriage returns are ommitted This is a snippet of the code I'm using <%htmlBody = htmlBody & "<textarea>" & request.form(textAreaField) & "</textarea>"%> I have tried replacing the vbcrlf characters with <BR> but that does not help, anyone any ideas ? Link to comment Share on other sites More sharing options...
aspnetguy Posted January 30, 2006 Share Posted January 30, 2006 try replacing the "\r" and "\n" characters...these 2 chars make up a carriage return. in ASP.Net I have to replace both of them to get rid of returns in a textarea Link to comment Share on other sites More sharing options...
Philippe Posted January 31, 2006 Author Share Posted January 31, 2006 try replacing the "\r" and "\n" characters...these 2 chars make up a carriage return. in ASP.Net I have to replace both of them to get rid of returns in a textarea<{POST_SNAPBACK}> Get rid of them ? No, no, that's just the point I want them to stay !So I can have a textarea on the next screen with exactly the same lay-out as the previous one !!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now