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. Using Connectionstring

Using Connectionstring

Scheduled Pinned Locked Moved C#
question
3 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.
  • H Offline
    H Offline
    haleemasher
    wrote on last edited by
    #1

    i code a connection string in web.config in appsetting now i want to use that connection in dropdownlist which i want to bind through wizard. How i give that connection using wizard to bind it???

    OriginalGriffO K 2 Replies Last reply
    0
    • H haleemasher

      i code a connection string in web.config in appsetting now i want to use that connection in dropdownlist which i want to bind through wizard. How i give that connection using wizard to bind it???

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Try the ASP.NET forum

      No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • H haleemasher

        i code a connection string in web.config in appsetting now i want to use that connection in dropdownlist which i want to bind through wizard. How i give that connection using wizard to bind it???

        K Offline
        K Offline
        Keith Barrow
        wrote on last edited by
        #3

        This should really be posted in the asp.net forum, bur the process is the same as for winforms. First, move the connection strings from the AppSettings into the specialised connectionStrings section(you'll have to google for this as I'm replying from my phone). This has a few advantages, first you can get a Connectionstring object, the connection strings can be encrypted in config separately and (most important in your case) the connection strings are now separate from the other app config. Now all you need to do is iterate over the set of connection string and add the names to the dropdown list. Note that sending the strings themselves down to the client is a security risk. Once the client has responded with a selected name you can use it to look up the string from the config.

        CCC solved so far: 2 (including a Hard One!)

        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