F
fabrice
Hello,
Is that a way for reading section of the web.config by code ?
I m able to read the section <appSettings> like this :
<appSettings>
<add key="AppVer" value="Version 0.8 beta"/>
</appSettings>
Dim test As System.Collections.Specialized.NameValueCollection
test = CType
(System.Configuration.ConfigurationSettings.GetConfig("appSettings"),
System.Collections.Specialized.NameValueCollection)
dim mytest as string = CType (test("AppVer"), String )
response.write(mytest)
And it's OK
But i can't with the section globalization
<system.web>
<globalization requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
culture="fr-FR" uiCulture="fr-FR" />
Dim testAs System.Collections.Specialized.NameValueCollection
test= CType
(System.Configuration.ConfigurationSettings.GetConfig("system.web/globalization"),
System.Collections.Specialized.NameValueCollection)
dim mytest as string = CType (test("culture"), String )
'response.write(mytest)
it does not work.
How can i get information in globalization section ?
thanks
fabrice
Is that a way for reading section of the web.config by code ?
I m able to read the section <appSettings> like this :
<appSettings>
<add key="AppVer" value="Version 0.8 beta"/>
</appSettings>
Dim test As System.Collections.Specialized.NameValueCollection
test = CType
(System.Configuration.ConfigurationSettings.GetConfig("appSettings"),
System.Collections.Specialized.NameValueCollection)
dim mytest as string = CType (test("AppVer"), String )
response.write(mytest)
And it's OK
But i can't with the section globalization
<system.web>
<globalization requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
culture="fr-FR" uiCulture="fr-FR" />
Dim testAs System.Collections.Specialized.NameValueCollection
test= CType
(System.Configuration.ConfigurationSettings.GetConfig("system.web/globalization"),
System.Collections.Specialized.NameValueCollection)
dim mytest as string = CType (test("culture"), String )
'response.write(mytest)
it does not work.
How can i get information in globalization section ?
thanks
fabrice