I agree with Patrice, it's easier to read.
In some projects I have used a shortcut function like this:
function rw(s)
response.write s
end function
rw "Hello"
rw "Goodbye"
I have also used wl, which mimicked writeline (adding carriage returns /
<br> etc. so I didn't have to think about putting the HTML into the text).
I think another factor is that many people are in the habit of avoiding
context switching because IIS *used* to be a bit inefficient with it.
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Evertjan." <> wrote in message
news:Xns94F7589DDE5AEeejj99@194.109.133.29...
>I did not expect this to work as expected:
>
> <%
> function a()
> %>ha !<br><%
> end function
>
> a
> a
> a
> a
> a
> %>
>
> So, why do we use so much response.writes?
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)