469,314 Members | 2,198 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,314 developers. It's quick & easy.

Difference between response.write and <%=%>

38
can nebody tell me which of the following is better over other and how?
Difference between response.write and <%=%>
both of these statement will return same output.

Thanks & Regards
Nudrat
Oct 7 '07 #1
2 1408
jhardman
3,406 Expert 2GB
Nudrat,

There is no difference, <%=%> is just a shortened syntax for response.write. I find whether I use one or the other is more a question of the circumstance. If I am in the middle of a block of code and want to write something I use response.write. If I am in the middle of HTML code and want to insert data from the script I use <%=%>

Jared
Oct 8 '07 #2
nudrat
38
Thanx a lot Jared,

Regards
Nudrat

Nudrat,

There is no difference, <%=%> is just a shortened syntax for response.write. I find whether I use one or the other is more a question of the circumstance. If I am in the middle of a block of code and want to write something I use response.write. If I am in the middle of HTML code and want to insert data from the script I use <%=%>

Jared
Oct 9 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Donald Firesmith | last post: by
9 posts views Thread by bill | last post: by
17 posts views Thread by roN | last post: by
3 posts views Thread by ajay2552 | last post: by
2 posts views Thread by Samik R. | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.