开发者

About $ character in asp.net

I have a code section below :

    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
  ConnectionString="<开发者_JAVA技巧%$ ConnectionStrings:MainConnStr %>"
  SelectCommand="SELECT [au_id], [au_lname], [au_fname], [state] FROM [authors]" />

What is meaning of The $ character in value of ConnectionString attribute?


It's referred to as an ASP.NET Expression. You can pull config information such as ConnectionStrings or AppSettings as well as Resources.

ASP.NET Expressions Overview


They're expressions, read about them here

Read about all inline tags here

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜