...

View Full Version : Which Do you prefer?



Crash1hd
10-07-2003, 12:36 AM
Ok I have a simple question!

Which do you prefer

Response.Write blah

or

= blah

as they both do the same thing

so which do you prefer and why?

sound like a school question doesnt it lol :)

A1ien51
10-07-2003, 01:41 PM
It depends on what I am doing

I will use <%= blah %> if I am displaying only a variable on the middle of html code

I use Response.Write( blah ) if I am writing more then a varaible

Both are handy for different situations.

angiras
10-07-2003, 02:02 PM
better to do a sub than this horrible mixed code html + asp
even for one line

Sub DoIt()
Response.Write("ok")
End Sub

<%=DoIt%>

af11kcc
10-08-2003, 06:27 AM
I agree with last posting



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum