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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -