re:
!> But how <%$ AppSettings:something %> is working?
!> which class is really used to read the file?
You don't need a specific class.
The $ syntax is built into the Configuration Manager workspace.
$, in this context, means *evaluate* the applicable section of web.config.
If you have :
<appSettings>
<add key="selectDocs" value="SELECT * FROM documents WHERE thereisdata ORDERBY CreationDate DESC"/>
</appSettings>
You can retrieve the value of that query with :
<asp:Literal runat="server" Text="<%$ AppSettings:selectDocs%>" /><br/>
If you have:
<connectionStrings>
<add name="NwindConn"
connectionString="server=(local);trusted_connection=true;database=northwind"
providerName="System.Data.SqlClient" />
</connectionStrings>
You can retrieve the value of that query with :
<asp:Literal runat="server" Text="<%$ ConnectionStrings:NwindConn%>" />
Of course, you could also transfer those values to text variables and use them in other forms.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================