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. General Programming
  3. C#
  4. C#

C#

Scheduled Pinned Locked Moved C#
csharpquestion
4 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.
  • M Offline
    M Offline
    Manish Kumar123456
    wrote on last edited by
    #1

    can we use both two method of connection string in web.config file 1.appsetting 2.connection string?

    P J A 3 Replies Last reply
    0
    • M Manish Kumar123456

      can we use both two method of connection string in web.config file 1.appsetting 2.connection string?

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Yes. Ultimately it's just a string. The application provides the context.

      I was brought up to respect my elders. I don't respect many people nowadays.
      CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

      1 Reply Last reply
      0
      • M Manish Kumar123456

        can we use both two method of connection string in web.config file 1.appsetting 2.connection string?

        J Offline
        J Offline
        Jay Nardev
        wrote on last edited by
        #3

        You can use below code to get both value. AppSettings["KeyName"].ToString(); ConfigurationManager.ConnectionStrings["connectionName"].ConnectionString;

        1 Reply Last reply
        0
        • M Manish Kumar123456

          can we use both two method of connection string in web.config file 1.appsetting 2.connection string?

          A Offline
          A Offline
          Amol_B
          wrote on last edited by
          #4

          Yes

          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