I have question: when I to use <%= ConfigurationManager.AppSettings["xxx"] %>
and <%$ AppSettings: xxx %>
.
Sometimes when I use <%= ConfigurationManager.AppSettings["xxx "] %>
a I got the following error: "Server tags cannot contain <% … %> constructs". Then a put <%$ AppSettings: xxx %>
and it works.
Like this example: Error:
<asp:Literal runat="server" ID="Literal9" Text="<%= ConfigurationManager.AppSettings["xxx"] %>"></asp:Literal>
Working:
<asp:Literal runat="server" ID="Literal9" Text='<%$ AppSettings: xxx %>'></asp:Literal>