Hi everyone!
As the subject says I have problems retrieving appSettings from my web.config file.
The web.config file is placed at the root as it should be and I have the following name/values added:
<appSettings>
<add key="da-DK" value="100"/>
<add key="de-DE" value="742,87"/>
<add key="en-US" value="630,19"/>
</appSettings>
In my main aspx file i try to retrieve these values as follows, but I get absolutely nothing back. Why?
string strValutaValue = ConfigurationSettings.AppSettings["da-DK"];
There are square braces arround the "da-DK" - don't knwo why it isn't there now.
It shold return "100" here right?.
However it seems as if it dosn't matter what I write in the []. I could write ["Whatever"] and it dosn't even through me an error.
What am I doing wrong here, anyone!
best regards
kenni
As the subject says I have problems retrieving appSettings from my web.config file.
The web.config file is placed at the root as it should be and I have the following name/values added:
<appSettings>
<add key="da-DK" value="100"/>
<add key="de-DE" value="742,87"/>
<add key="en-US" value="630,19"/>
</appSettings>
In my main aspx file i try to retrieve these values as follows, but I get absolutely nothing back. Why?
string strValutaValue = ConfigurationSettings.AppSettings["da-DK"];
There are square braces arround the "da-DK" - don't knwo why it isn't there now.
It shold return "100" here right?.
However it seems as if it dosn't matter what I write in the []. I could write ["Whatever"] and it dosn't even through me an error.
What am I doing wrong here, anyone!
best regards
kenni