Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# ConfigurationManager.AppSettings还是仅AppSettings?_C#_Asp.net_Webforms_Expressionbuilder - Fatal编程技术网

C# ConfigurationManager.AppSettings还是仅AppSettings?

C# ConfigurationManager.AppSettings还是仅AppSettings?,c#,asp.net,webforms,expressionbuilder,C#,Asp.net,Webforms,Expressionbuilder,我有个问题:我什么时候使用和 有时,当我使用a时,我会出现以下错误:“服务器标记不能包含构造”。然后一个put,它就工作了 像这个例子: 错误: 工作: <asp:Literal runat="server" ID="Literal9" Text='<%$ AppSettings: xxx %>'></asp:Literal> 发生错误不是因为您在ConfigurationManager.AppSettings和AppSettings之间切换,而是因为

我有个问题:我什么时候使用

有时,当我使用
a时,我会出现以下错误:“服务器标记不能包含构造”。然后一个put
,它就工作了

像这个例子: 错误:


工作:

<asp:Literal runat="server" ID="Literal9" Text='<%$ AppSettings: xxx %>'></asp:Literal>

发生错误不是因为您在
ConfigurationManager.AppSettings
AppSettings
之间切换,而是因为

<asp:Literal runat="server" ID="Literal9" Text='<%$ AppSettings: xxx %>'></asp:Literal>