Reading ConfigSections from web.config: [modified]
-
Hi I am having problem with reading configSections from web.config file. Can anyone provide a sample code, how to read this group. Following in the web.config: I am trying following code to read but the object a contains null value. NameValueCollection a = (NameValueCollection)ConfigurationSettings.GetConfig("merchants"); Shahzad Aslam Software Engineer modified on Wednesday, February 13, 2008 12:38 AM
-
Hi I am having problem with reading configSections from web.config file. Can anyone provide a sample code, how to read this group. Following in the web.config: I am trying following code to read but the object a contains null value. NameValueCollection a = (NameValueCollection)ConfigurationSettings.GetConfig("merchants"); Shahzad Aslam Software Engineer modified on Wednesday, February 13, 2008 12:38 AM
web.config file text to read that in c# using system.configuration; string connectionsttring=configurationmaneger.appsettings["connection"].tostring(); Rajeev Kr. Sharma VRI Software Pvt.Ltd. New Delhi India HumOnline.com Stay Connected modified on Wednesday, February 13, 2008 12:48 AM
-
Hi I am having problem with reading configSections from web.config file. Can anyone provide a sample code, how to read this group. Following in the web.config: I am trying following code to read but the object a contains null value. NameValueCollection a = (NameValueCollection)ConfigurationSettings.GetConfig("merchants"); Shahzad Aslam Software Engineer modified on Wednesday, February 13, 2008 12:38 AM
-
Hi I am having problem with reading configSections from web.config file. Can anyone provide a sample code, how to read this group. Following in the web.config: I am trying following code to read but the object a contains null value. NameValueCollection a = (NameValueCollection)ConfigurationSettings.GetConfig("merchants"); Shahzad Aslam Software Engineer modified on Wednesday, February 13, 2008 12:38 AM
In VB.NET First U imports comfig setting Imports System.Configuration Ofter that u get AppSetting value dim str as string = ConfigurationManager.AppSettings("serverurl")
Piyush Vardhan Singh p_vardhan14@rediffmail.com http://holyschoolofvaranasi.blogspot.com http://holytravelsofvaranasi.blogspot.com
-
web.config file text to read that in c# using system.configuration; string connectionsttring=configurationmaneger.appsettings["connection"].tostring(); Rajeev Kr. Sharma VRI Software Pvt.Ltd. New Delhi India HumOnline.com Stay Connected modified on Wednesday, February 13, 2008 12:48 AM
This was not the one that I was expecting. The appsettings section can be read easily but my concern was to read ConfigSections group which we used for our customized section. Shahzad Aslam Software Engineer Softech Systems Limited Email: shehzadaslam@hotmail.com