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. connection string

connection string

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

    hi to all any one can tell what the connection string for internet as i am using below line Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Inetpub\\vhosts\\greenindiaconcept.org\\data\\data.mdb ;Persist Security Info=true" and i am using for below link http://www.greenindiaconcept.org/admin/registration.aspx please give me some standard connection string example for website

    rizvan sivally

    H R 2 Replies Last reply
    0
    • S sheemap

      hi to all any one can tell what the connection string for internet as i am using below line Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Inetpub\\vhosts\\greenindiaconcept.org\\data\\data.mdb ;Persist Security Info=true" and i am using for below link http://www.greenindiaconcept.org/admin/registration.aspx please give me some standard connection string example for website

      rizvan sivally

      H Offline
      H Offline
      Hiren solanki
      wrote on last edited by
      #2

      If your database file is inside a datadirectory then you can use.

      "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\myDatabase.mdb;Persist Security Info=true"

      See HERE[^] for more.

      Regards, Hiren.

      My Recent Article: - Way to know which control have raised a postback
      My Recent Tip/Trick: - The ?? Operator.

      S 1 Reply Last reply
      0
      • H Hiren solanki

        If your database file is inside a datadirectory then you can use.

        "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\myDatabase.mdb;Persist Security Info=true"

        See HERE[^] for more.

        Regards, Hiren.

        My Recent Article: - Way to know which control have raised a postback
        My Recent Tip/Trick: - The ?? Operator.

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

        Dear i am using for website which is not working as u suggest

        rizvan sivally

        T 1 Reply Last reply
        0
        • S sheemap

          hi to all any one can tell what the connection string for internet as i am using below line Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Inetpub\\vhosts\\greenindiaconcept.org\\data\\data.mdb ;Persist Security Info=true" and i am using for below link http://www.greenindiaconcept.org/admin/registration.aspx please give me some standard connection string example for website

          rizvan sivally

          R Offline
          R Offline
          RaviRanjanKr
          wrote on last edited by
          #4

          you should store you connection string in web.config file and then retrieve connection string from web.config file. because of this, you able to use your connection globally without creating connection every time. navigate the given link Storing and Retrieving Connection Strings in ASP.NET [^] and MS Access Connection Strings[^]

          H 1 Reply Last reply
          0
          • R RaviRanjanKr

            you should store you connection string in web.config file and then retrieve connection string from web.config file. because of this, you able to use your connection globally without creating connection every time. navigate the given link Storing and Retrieving Connection Strings in ASP.NET [^] and MS Access Connection Strings[^]

            H Offline
            H Offline
            Hiren solanki
            wrote on last edited by
            #5

            Dear Ravi, Matter here is not about storing a connection string in a safe place. Please get into the question properly. :)

            Regards, Hiren.

            My Recent Article: - Way to know which control have raised a postback
            My Recent Tip/Trick: - The ?? Operator.

            R 1 Reply Last reply
            0
            • S sheemap

              Dear i am using for website which is not working as u suggest

              rizvan sivally

              T Offline
              T Offline
              TweakBird
              wrote on last edited by
              #6

              Hi sheemap,

              Hiren Solanki wrote:

              See HERE[^] for more.

              What Hiren said is absolutely true. BTW if you go through that link, you can learn how to configure connections string with different databases, data files ..etc. Happy Coding...

              1 Reply Last reply
              0
              • H Hiren solanki

                Dear Ravi, Matter here is not about storing a connection string in a safe place. Please get into the question properly. :)

                Regards, Hiren.

                My Recent Article: - Way to know which control have raised a postback
                My Recent Tip/Trick: - The ?? Operator.

                R Offline
                R Offline
                RaviRanjanKr
                wrote on last edited by
                #7

                Hiren Solanki wrote:

                Please get into the question properly.

                Of-course I did it before posting my answer.

                Hiren Solanki wrote:

                Matter here is not about storing a connection string in a safe place.

                He just want to know how to create a connection for Web programming and I just referring him Links with valuable advice whatever, thanks for your advice.

                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