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. Web Config File

Web Config File

Scheduled Pinned Locked Moved ASP.NET
9 Posts 5 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.
  • V Offline
    V Offline
    varshavmane
    wrote on last edited by
    #1

    Can we have more than one Web Config file in a single Application.If yes then how do we go about the same. Thanks in advance.

    G P D 3 Replies Last reply
    0
    • V varshavmane

      Can we have more than one Web Config file in a single Application.If yes then how do we go about the same. Thanks in advance.

      G Offline
      G Offline
      GaryWoodfine
      wrote on last edited by
      #2

      no,

      Kind Regards, Gary


      My Website || My Blog || My Articles

      V 1 Reply Last reply
      0
      • G GaryWoodfine

        no,

        Kind Regards, Gary


        My Website || My Blog || My Articles

        V Offline
        V Offline
        varshavmane
        wrote on last edited by
        #3

        Actually today I gave an Interview where this question was asked,I said the same answer but the person who was taking interview said that u can do it just check it???

        G 1 Reply Last reply
        0
        • V varshavmane

          Can we have more than one Web Config file in a single Application.If yes then how do we go about the same. Thanks in advance.

          P Offline
          P Offline
          Pradipta Basu
          wrote on last edited by
          #4

          We can have multiple web.config file for an application. If we divide our project into different folders, then each of the folders can have different web.config files apart from the web.config in the root. When we access pages in a particular folder, it that folder contains a web.config file, setting there will have more priority that that of the root, ie., if you override a setting of the root web.config in the folder's web.config, the latter one will be used for the pages in that particular folder. you can read this artile Using Forms Authentication in ASP.NET, Part 2

          Pradipta Basu

          N 1 Reply Last reply
          0
          • V varshavmane

            Actually today I gave an Interview where this question was asked,I said the same answer but the person who was taking interview said that u can do it just check it???

            G Offline
            G Offline
            GaryWoodfine
            wrote on last edited by
            #5

            Well I wouldn't have got the job either! I have never used more than one web.config file in an application. never seen the need to.

            Kind Regards, Gary


            My Website || My Blog || My Articles

            1 Reply Last reply
            0
            • P Pradipta Basu

              We can have multiple web.config file for an application. If we divide our project into different folders, then each of the folders can have different web.config files apart from the web.config in the root. When we access pages in a particular folder, it that folder contains a web.config file, setting there will have more priority that that of the root, ie., if you override a setting of the root web.config in the folder's web.config, the latter one will be used for the pages in that particular folder. you can read this artile Using Forms Authentication in ASP.NET, Part 2

              Pradipta Basu

              N Offline
              N Offline
              Nitin1981
              wrote on last edited by
              #6

              Yes We can have more than one web.config file. But each folder can have only web.config file. Lower level takes precedence over higher ones like web.cofig takes over machine.config. But you can configure higher web.config's setting in such a way that it cant be overriden also.

              Don't Quit

              V 1 Reply Last reply
              0
              • N Nitin1981

                Yes We can have more than one web.config file. But each folder can have only web.config file. Lower level takes precedence over higher ones like web.cofig takes over machine.config. But you can configure higher web.config's setting in such a way that it cant be overriden also.

                Don't Quit

                V Offline
                V Offline
                varshavmane
                wrote on last edited by
                #7

                Thanks for reply.Actually can we do it in .NET Version 1.1??

                P 1 Reply Last reply
                0
                • V varshavmane

                  Can we have more than one Web Config file in a single Application.If yes then how do we go about the same. Thanks in advance.

                  D Offline
                  D Offline
                  dayakar_dn
                  wrote on last edited by
                  #8

                  hi, We can have more than one web.config files in the same project but we should give different names. eg First.Config Second.config

                  1 Reply Last reply
                  0
                  • V varshavmane

                    Thanks for reply.Actually can we do it in .NET Version 1.1??

                    P Offline
                    P Offline
                    Pradipta Basu
                    wrote on last edited by
                    #9

                    Yes we can

                    Pradipta Basu

                    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