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
Post a Comment