[ACCEPTED]-In ASP.Net, what is the difference between <%= and <%#-asp.net

Accepted answer
Score: 74

See this question:
When should I use # and = in ASP.NET controls?


Summary from those answers:

There 1 are a several different 'bee-stings':

Score: 5

<%# is data binding expression syntax.

<%= resolves the expression returns its 2 value to the block (Embedded code block reference) - effectively shorthand 1 for <% Response.Write(...); %>

Score: 2

<%# is the databinding directive, <%= is 1 a shortcut for "Response.Write"

Score: 2

<%= x %> is shorthand for Response.Write()

<%# x 2 %> indicates a databind.

<% %> indicates 1 server-executable code.

More Related questions