Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

The use of <%$ %> is new to me and the author didn't really explain it. I mean, I can see pretty easily what it does in this instance.

But, I want to learn the syntax inside <%$ %> to access other things inside Web Config. I don't know what this type of markup is called so I can't google it. I'm having a rough time finding it.

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

Thanks in advance

like image 364
greenonion Avatar asked Oct 06 '12 01:10

greenonion


People also ask

What is a markup tag in HTML?

A “markup tag” is the fundamental characteristic of HTML. Every markup tag is a command placed between “wickets” or “angle brackets”—a left bracket (<) and a right bracket (>).

What is a razor markup?

Razor is a markup syntax that lets you embed server-based code (Visual Basic and C#) into web pages. Server-based code can create dynamic web content on the fly, while a web page is written to the browser.

What is the use of wrapper method in ASP NET Markdown?

UseMarkdown () is very simple and simply delegates to builder.UseMiddleware<MarkdownPageProcessor> (). The sole purpose of the wrapper method is to provide a discoverable method in the Startup.Configure () code that's consistent with how ASP.NET Core built in middleware behaves. Et Voila!

How to specify the page's title in ASP NET?

An ASP.NET page can specify its title in one of the following ways: Programmatically setting the page's Title property using code like Page.Title="title" or Page.Header.Title="title".


1 Answers

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

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

like image 169
pete Avatar answered Sep 28 '22 06:09

pete