Maxer 's Blog
态度决定一切,理想成就未来!
posts - 43,  comments - 18,  trackbacks - 2

Expression Syntax: <%$ ... %> New in 2.0

ASP.NET 2.0 adds a new declarative expression syntax for substituting values into a page before the page is parsed. This is useful for substituting connection string values or application settings defined in a Web.config file for server control property values. It can also be used to substitute values from a resource file for locaization. More on connection string and resources expressions and expression handlers can be found in the Performing Data Access, Internationalizing Your Application and Extending ASP.NET sections.

<asp:SqlDataSource ID="SqlDataSource1" ConnectionString='<%$ connectionStrings:Pubs %>' 
runat="server" SelectCommand="sp_GetAuthors" /> <asp:Label ID="Label1" Text='<%$ Resources: ExchRate, ConvertLabel %>' runat="server"/>
posted on 2006-03-27 17:25 Maxer`s Blog 阅读(98) 评论(1) 编辑 收藏

FeedBack:
2007-10-17 08:33 | 厦门网站建设[未注册用户]
好的.收下了
 回复 引用   
昵称:Maxer`s Blog
园龄:6年1个月
粉丝:0
关注:0

<2006年3月>
2627281234
567891011
12131415161718
19202122232425
2627282930311
2345678

搜索

 
 

常用链接

随笔分类

随笔档案

Link

积分与排名

  • 积分 - 25956
  • 排名 - 4089

最新评论

阅读排行榜

评论排行榜

推荐排行榜