Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Reading ConfigSections from web.config: [modified]

Reading ConfigSections from web.config: [modified]

Scheduled Pinned Locked Moved ASP.NET
helptutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shahzad Aslam
    wrote on last edited by
    #1

    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

    M S P 3 Replies Last reply
    0
    • S Shahzad Aslam

      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

      M Offline
      M Offline
      Member_3259094
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • S Shahzad Aslam

        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

        S Offline
        S Offline
        Sun Rays
        wrote on last edited by
        #3

        Hi, hope this link[^] will hwlp you.

        Thanks, Sun Rays To get something you must have to try once. My Articles

        1 Reply Last reply
        0
        • S Shahzad Aslam

          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

          P Offline
          P Offline
          Piyush Vardhan Singh
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • M Member_3259094

            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

            S Offline
            S Offline
            Shahzad Aslam
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups