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. Configuration Manager Question.........Anyone......Help??

Configuration Manager Question.........Anyone......Help??

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharpasp-netbusiness
2 Posts 2 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
    sanju0276
    wrote on last edited by
    #1

    In ASP.NET 1.1, from by BusinessLayer(a class library project), I used to get Connection string as : string dsn =ConfigurationSettings.AppSettings["connection"]; and pass to DataAccessLayer(DAL). It worked. On 2.0, if I used the previous one, it warns saying it is obsolete. If I put connection string in , they have new settings..... like this: string dsn = ConfigurationManager.ConnectionString["connection"]; It gives me error. Moreover, I cannot get ConfigurationManager class from my Business Layer. How should I pass connection string from BusinessLayer to DAL using ConfigurationManager. Please reply.... Thanks. Sanjeev

    A 1 Reply Last reply
    0
    • S sanju0276

      In ASP.NET 1.1, from by BusinessLayer(a class library project), I used to get Connection string as : string dsn =ConfigurationSettings.AppSettings["connection"]; and pass to DataAccessLayer(DAL). It worked. On 2.0, if I used the previous one, it warns saying it is obsolete. If I put connection string in , they have new settings..... like this: string dsn = ConfigurationManager.ConnectionString["connection"]; It gives me error. Moreover, I cannot get ConfigurationManager class from my Business Layer. How should I pass connection string from BusinessLayer to DAL using ConfigurationManager. Please reply.... Thanks. Sanjeev

      A Offline
      A Offline
      amaneet
      wrote on last edited by
      #2

      try this System.Configuration.ConfigurationManager.AppSettings(""):)

      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