appSettings and ConfigurationManager.AppSettings issue

后端 未结 8 1545
情书的邮戳
情书的邮戳 2021-02-12 22:36

I have searched the site, and while I found some very useful information, I couldn\'t figure out what is going on with my code. I have the following web.config:



        
8条回答
  •  说谎
    说谎 (楼主)
    2021-02-12 23:15

    Have you tried:

    return ConfigurationManager.AppSettings.Get("APIKey");
    

提交回复
热议问题