I know that we can <%: %> syntax for html encoding that is introduced in .Net 4. But I was reading new features of Asp.Net 4.5, and I got that we have another type i-e <%#: %> that is used for encoding the result of databind expression.
I am confuse with this.
What is the difference between <%: %> and <%#: %> in Asp.Net
Please explain both of them.
The same way that
<%: %>is the HTML encoded version of<%= %>, the<%#: %>tag is the HTML encoded version of<%# %>.The
<%#: %>tag does the same as<%# %>, but then it callsServer.HTMLEncodeon the string.