|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Cannot get Application SettingI've defined two application settings in my web.config file. But in the following code : Dim rootWebConfig1 As System.Configuration.Configuration rootWebConfig1 = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(Nothing) If (rootWebConfig1.AppSettings.Settings.Count > 0) Then sField1 = rootWebConfig1.AppSettings.Settings("field1") sField2 = rootWebConfig1.AppSettings.Settings("field2") End If rootWebConfig1.AppSettings.Settings.Count always returns 0. What am I doing wrong? Venki > What am I doing wrong? The code Microsoft provides doesn't work. I had the exact same problemyou did. You can use AppSettings.Item("YourKeyHere") to get the value.
class library
Something I don't quite understand about "file in use by another process" exceptions..... How to Load string into mshtml object? Detect WiFi Networks what method to use to add 1 day to a date (hotel reservation for one night by clicking on calender) Adding rows to a data table: Rows do not show up PLEASE HELP - Executable properties - right click How do I calculate the date of the previous day given a date ( in "MM/dd/yy" format) Variable precision Saving color changes for next login |
|||||||||||||||||||||||