appSettings and ConfigurationManager.AppSettings issue

后端 未结 8 1561
情书的邮戳
情书的邮戳 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:25

    I bet u r using the right syntax to access them when you write: ConfigurationManager.AppSettings["Key1"];

    Try this format for the web config

    
    
    
        
        
    
    
        ......
        ......
    
    
        
        
            ......
        
    
        
            
                
                
                
            
        
        
        
    
    

提交回复
热议问题