Textarea

liunx

Guest
I have an ASP (VBScript) variable that I am setting as the text in a textarea. While generating the variable I would like to insert some line breaks.<br />
What characters do I use for this? (I've tried <br/> and %0D%0A, but neither of those work.<!--content-->Don't worry. Figured it out.<br />
I used the %OD%OA and the unescaped it!<br />
Works a charm<!--content-->This should work out good for you:<br />
<br />
<br />
<%<br />
<br />
var = "This is a test"<br />
var2 = "This is another test"<br />
<br />
var3 = var & vbcrlf & vbcrlf & var2<br />
<br />
%><br />
<br />
<html><br />
<head><br />
<title>Untitled</title><br />
</head><br />
<br />
<body><br />
<br />
<textarea wrap="soft" cols="6" rows="5"><%response.write(var3)%></textarea><br />
<br />
</body><br />
</html><!--content-->Thanks, thats exactly the type of thing I was looking for.<!--content-->
 
Back
Top