I have some values stored in my Web.Config and I would like to retrieve those values at runtime.
They look something like this:
<appSettings>
<add key="Value1" value="abc"/>
<add key="Value2" value="xyz"/>
</appSettings>
I have seen some code like the following, but it does not work.
Dim WebConfig As System.Configuration.Confi
guration = System.Web.Configuration.W
ebConfigur
ationManag
er.OpenWeb
Configurat
ion(Nothin
g)
What am I doing wrong?
Start Free Trial