ASP.NET Server Controls and <%$ %> params like ConnectionStrings
Is there a complete list of the objects you can tap into with <%$ %开发者_C百科> tags in ASP.NET
I know you can do things like <%$ ConnectionStrings:northwind %> in the ConnectionString attribute of the <asp:SqlDataSource>
tag.
Can you also do this with Cookies and Session? Is there a <%$ %> reference page out there?
What you're looking for are called ASP.NET Expressions. AppSettings
, ConnectionStrings
, and Resources
are the default providers made available with ASP.NET, but one can write a custom ASP.NET Expressions provider for just about anything.
The ones you're looking for (Cookies and Session) have been written and made available here.
精彩评论