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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -