What are they called in ASP.NET <%:%>?

What are they called in ASP.NET?

  • <%# ... %>
  • <%= ... %>
  • <%: ... %>

And what are the different options? How are they used?

+4
source share
2 answers

This is a block of code. The c # version is used for data binding. They basically let you embed C # code in an aspx page.

MSDN has a good article on code blocks here and a good article on data binding expressions.

+1
source

A generic term for tags of type <% %> is "nuggets", with the exception of <%@ %> , which is called a directive.

How is each nugget used to be found in .NET "code blocking blocks"? .

+2
source

Source: https://habr.com/ru/post/1480605/


All Articles