ASP.NET Server controls and options <% $%>, such as ConnectionStrings

Is there a complete list of objects that you can use with the <% $%> tags in ASP.NET

I know that you can do things like <% $ ConnectionStrings: northwind%> in the ConnectionString attribute of the <asp:SqlDataSource> .

Can you also do this with Cookies and Session? Is there a link page <% $%>?

+4
source share
1 answer

What you are looking for is called ASP.NET Expressions . AppSettings , ConnectionStrings and Resources are the default providers available through ASP.NET, but you can write your own ASP.NET Expressions provider for just about anything.

The ones you are looking for (Cookies and Session) have been written and are available here .

+2
source

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


All Articles