Linh
Linh

Reputation: 1022

About $ character in asp.net

I have a code section below :

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

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

Upvotes: 2

Views: 104

Answers (2)

Justin Swartsel
Justin Swartsel

Reputation: 3431

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

Upvotes: 6

Related Questions