c# - Diference between special tags asp.net -


i'm developing front-end part of application right now, , question came mind.

what difference between asp.net special tags:

<%= %> <%@ %> <%# %> 

and if exists special tag please describe function.

  • <%= prints raw value of expression within.
    syntax can cause xss vulnerabilities , should not used.

  • <%: prints , html-escapes value of expression within.

  • <%# <%=, used data-binding

  • <% executes block of code , ignores , return values

  • <%@ used directives page or imports.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -