What are these asp.net <% $%> markup tags?

I read about how to work with SqlDataSource objects by adding properties to the markup, and for the ConnectionString property, the author used something like

 <asp:SqlDataSource ... ConnectionString="<%$ ConnectionStrings:lyric %>" ... > 

Using <% $%> is new to me, and the author really didnโ€™t explain it. I mean, I see quite easily what he does in this case.

But I want to learn the syntax inside <% $%> to access other things in Web Config. I donโ€™t know what this type of markup is called, so I canโ€™t use it. It's hard for me to find him.

Do tags like <% @%>, <% #%> and <% $%> have a special blanket name? (so that I can find out other options) Is there a specific name for <% $%>? (so that I can look and learn the syntax)

Thanks in advance

+6
source share
1 answer

These are called "ASP.NET embedded expressions" or "ASP.NET embedded code blocks." You can learn more about them here: http://support.microsoft.com/kb/976112

<% $ ...%> is the syntax for the expression builder.

+9
source

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


All Articles