Response.Write vs <%= %>

后端 未结 15 2548
我在风中等你
我在风中等你 2020-12-28 14:34

Bearing in mind this is for classic asp

Which is better, all HTML contained within Response.Write Statements or inserting variables into HTML via &l

15条回答
  •  有刺的猬
    2020-12-28 15:02

    From a personal preference point of view I prefer the <%= %> method as I feel it provides a better separation variable content from static content.

提交回复
热议问题