asp.net - Where can I find information on code blocks? - Stack Overflow

admin2023-02-27  545

Does anyone know a good website that summarises what you can do with code blocks (i.e. <% <%= <%# etc) in ASP.Net?

Thanks.

Answers:

Does anyone know a good website that summarises what you can do with code blocks (i.e. <% <%= <%# etc) in ASP.Net?

Thanks.

Answers:

Here is a MSDN page: MSDN Embedded Code Blocks

<%    -  any code

<%=   -  shortcut for Response.Write()    

<%#   -  is for binding

<%--  -  is for comments

Answers:

This question should be helpful:
When should I use # and = in ASP.NET controls?

转载请注明原文地址:https://www.u19.cn/read-201107.html
New Post(0)