472,145 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

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 1484
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
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.