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. database connectivity 4m web.config

database connectivity 4m web.config

Scheduled Pinned Locked Moved ASP.NET
databasesysadminworkspace
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.
  • S Offline
    S Offline
    smitab
    wrote on last edited by
    #1

    hi, i m connecting database 4m web.config. my code is... the page code is.. private void Page_Load(object sender, System.EventArgs e) { string str="server" +Configuration.Appsettings["servr"]+";"; str+="Database=" +Configuration.Appsettings["databse"]+";"; } but i have err with my page .. is namespace could not found sam.

    M 1 Reply Last reply
    0
    • S smitab

      hi, i m connecting database 4m web.config. my code is... the page code is.. private void Page_Load(object sender, System.EventArgs e) { string str="server" +Configuration.Appsettings["servr"]+";"; str+="Database=" +Configuration.Appsettings["databse"]+";"; } but i have err with my page .. is namespace could not found sam.

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

      Hi there. What namespace could not be found? Is it the System.Configuration?

      S 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there. What namespace could not be found? Is it the System.Configuration?

        S Offline
        S Offline
        smitab
        wrote on last edited by
        #3

        no i had given that but it giving err: namespace configuration is not found sam. -- modified at 5:24 Monday 13th February, 2006

        A M 2 Replies Last reply
        0
        • S smitab

          no i had given that but it giving err: namespace configuration is not found sam. -- modified at 5:24 Monday 13th February, 2006

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

          R u writing or cause the first one will not work ! try and let me know. :) Akash

          1 Reply Last reply
          0
          • S smitab

            no i had given that but it giving err: namespace configuration is not found sam. -- modified at 5:24 Monday 13th February, 2006

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

            Depending on which version of the ASP.NET, you should use the right api: + ConfigurationSettings.AppSettings Property /a>[^] ( for 1.1 ) + WebConfigurationManager.AppSettings Property [^] or ConfigurationSettings.AppSettings Property[^] ( for 2.0 )

            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