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. DB Connections in .aspx pages

DB Connections in .aspx pages

Scheduled Pinned Locked Moved Web Development
databasequestion
3 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.
  • D Offline
    D Offline
    David Salter
    wrote on last edited by
    #1

    Hi, I have developed a set of .aspx pages that interact with a database. I have put the same database connection string into every page, but this isn't ideal for obvious reasons. Is there any way I can specify the database connection string outside of the .aspx pages or somwhere that all pages can access it from? Cheers. Dave. :confused: :confused: :confused:

    M 1 Reply Last reply
    0
    • D David Salter

      Hi, I have developed a set of .aspx pages that interact with a database. I have put the same database connection string into every page, but this isn't ideal for obvious reasons. Is there any way I can specify the database connection string outside of the .aspx pages or somwhere that all pages can access it from? Cheers. Dave. :confused: :confused: :confused:

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

      Davey wrote: somwhere that all pages can access it from? Yes,in Global.asax Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
      Wish You Were Here-Pink Floyd-1975

      D 1 Reply Last reply
      0
      • M Mazdak

        Davey wrote: somwhere that all pages can access it from? Yes,in Global.asax Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
        Wish You Were Here-Pink Floyd-1975

        D Offline
        D Offline
        David Salter
        wrote on last edited by
        #3

        Thanks for the pointer...:)

        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