c# - How to get the key value from the AppSettings.Config file? -


i'm trying key value set in appsettings.config file seems not working.

this wrote that. code called constructor of mdi file , returning null value. know why?

     var getvalue = configurationsettings.appsettings["showquerytextbox"]; 

i tried configurationmanager.appsettings . didnt work.

my appsettings code follows.

<configuration>   <appsettings>     <add key="showquerytextbox" value="true"/>   </appsettings> </configuration> 

configurationsettings.appsettings obsolete, try

configurationmanager.appsettings["showquerytextbox"]; 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -