c# - What are these called in ASP.NET <%: %>? -


this question has answer here:

what these called in asp.net?

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

and different variations? how each of them used?

that's code block. version # used data binding. allow embed c# code aspx page.

msdn has article on code blocks here, , article on data binding expressions here.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -