What are they called <% ...%>? And how can they be used on the page

In a .Net web form ...

What are these special tags called?

I know 2: <%-- comment --%>for comments

and <%# used with Eval and Bind #>

So what does # mean? Is there any more?

I know that you can use some basic logical and functional calls, but I never found anything that really describes how this can be used and should be used.

I hope this is not a duplicate, but very difficult to find <%#

+3
source share
4 answers
+4

. .

, .

<%= "string constant" %> - HTML

<%= BO.Customer.GetName () %> - ,

<% RenderMyCoolControl %> - "=" , - HTML Response.Write

: <% Response.Write ("string constant") %>

, .

+3

; Eval Bind, , GridView, Repeater ..

?

:

+1

:

ASP.NET

And since the accepted answer to them says that they are server-side scripting tags "

+1
source

Source: https://habr.com/ru/post/1708221/


All Articles