开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜