Hello:
I've defined two application settings in my web.config file. But in the
following code :
Dim rootWebConfig1 As System.Configur ation.Configura tion
rootWebConfig1 =
System.Web.Conf iguration.WebCo nfigurationMana ger.OpenWebConf iguration(Nothi ng)
If (rootWebConfig1 .AppSettings.Se ttings.Count 0) Then
sField1 = rootWebConfig1. AppSettings.Set tings("field1")
sField2 = rootWebConfig1. AppSettings.Set tings("field2")
End If
rootWebConfig1. AppSettings.Set tings.Count always returns 0.
What am I doing wrong?
Venki
I've defined two application settings in my web.config file. But in the
following code :
Dim rootWebConfig1 As System.Configur ation.Configura tion
rootWebConfig1 =
System.Web.Conf iguration.WebCo nfigurationMana ger.OpenWebConf iguration(Nothi ng)
If (rootWebConfig1 .AppSettings.Se ttings.Count 0) Then
sField1 = rootWebConfig1. AppSettings.Set tings("field1")
sField2 = rootWebConfig1. AppSettings.Set tings("field2")
End If
rootWebConfig1. AppSettings.Set tings.Count always returns 0.
What am I doing wrong?
Venki
Comment