tags:

views:

77

answers:

3

Hi all,

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?

+6  A: 

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

Justin Swartsel
A: 

Yahoo!!!

Thank all for answer

Linh