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.cofig

web.cofig

Scheduled Pinned Locked Moved ASP.NET
5 Posts 3 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.
  • J Offline
    J Offline
    John L Ponratnam
    wrote on last edited by
    #1

    We can have two Web.config in a project. In the first Web.config; in appSetting u have one connection and in the second Web.config u have different connection. Which connection does the project work.

    Regards, LEE

    L M 2 Replies Last reply
    0
    • J John L Ponratnam

      We can have two Web.config in a project. In the first Web.config; in appSetting u have one connection and in the second Web.config u have different connection. Which connection does the project work.

      Regards, LEE

      L Offline
      L Offline
      Laddie
      wrote on last edited by
      #2
      1. First thing how can you put two files with the same name in a web root ? 2) Second. Why are you opting for such a method of putting connection string in two different files as you can always put any number of connection string in same file and refer then uniquely using the name.

      Thanks Laddie Kindly rate if the answer was helpful

      J 1 Reply Last reply
      0
      • L Laddie
        1. First thing how can you put two files with the same name in a web root ? 2) Second. Why are you opting for such a method of putting connection string in two different files as you can always put any number of connection string in same file and refer then uniquely using the name.

        Thanks Laddie Kindly rate if the answer was helpful

        J Offline
        J Offline
        John L Ponratnam
        wrote on last edited by
        #3

        I am not using the web.config file in the same root. First web.config will be accessessed by the login and the second web.cofig in a specified folder where the connection is for that specified folder.

        Regards, LEE

        L 1 Reply Last reply
        0
        • J John L Ponratnam

          I am not using the web.config file in the same root. First web.config will be accessessed by the login and the second web.cofig in a specified folder where the connection is for that specified folder.

          Regards, LEE

          L Offline
          L Offline
          Laddie
          wrote on last edited by
          #4

          I assume it will take only the one in the root. And when you run the application which one did it take ? ;)

          Thanks Laddie Kindly rate if the answer was helpful

          1 Reply Last reply
          0
          • J John L Ponratnam

            We can have two Web.config in a project. In the first Web.config; in appSetting u have one connection and in the second Web.config u have different connection. Which connection does the project work.

            Regards, LEE

            M Offline
            M Offline
            meghamaharshi
            wrote on last edited by
            #5

            if u have web config in different folders then web config of particular folder override the root folder web config file

            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