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. Connecting to a Visual Foxpro (DBF) table.

Connecting to a Visual Foxpro (DBF) table.

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-nethelp
4 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
    Davem7714
    wrote on last edited by
    #1

    I have put my web-site together and everything works fine when working on my computer. I have one page that works with a Visual FoxPro table (dbf). In my web.config file, the only way to get it to find the table is to put in the complete path to the file. The file on my site is located in the App_Data folder off of the root. Here is the connection string that works on my local computer when running under Visual Web Developer: How can I get my ASP.Net application to find this table on my web-site? Should I use information in the web.config file or is there another approach that will work? Any help would be much appreciated. Thanks! Dave :-)

    I 1 Reply Last reply
    0
    • D Davem7714

      I have put my web-site together and everything works fine when working on my computer. I have one page that works with a Visual FoxPro table (dbf). In my web.config file, the only way to get it to find the table is to put in the complete path to the file. The file on my site is located in the App_Data folder off of the root. Here is the connection string that works on my local computer when running under Visual Web Developer: How can I get my ASP.Net application to find this table on my web-site? Should I use information in the web.config file or is there another approach that will work? Any help would be much appreciated. Thanks! Dave :-)

      I Offline
      I Offline
      Ilya Verbitskiy
      wrote on last edited by
      #2

      Hello, You can use Server.MapPath("App_Data\ADASurvey.dbf"); This method maps the specified relative or virtual path to the physical directory on the server.

      D 1 Reply Last reply
      0
      • I Ilya Verbitskiy

        Hello, You can use Server.MapPath("App_Data\ADASurvey.dbf"); This method maps the specified relative or virtual path to the physical directory on the server.

        D Offline
        D Offline
        Davem7714
        wrote on last edited by
        #3

        Ilya, Can I use this in my web.config file or do I need to do something in my page load event? Dave :-)

        I 1 Reply Last reply
        0
        • D Davem7714

          Ilya, Can I use this in my web.config file or do I need to do something in my page load event? Dave :-)

          I Offline
          I Offline
          Ilya Verbitskiy
          wrote on last edited by
          #4

          You should manage this in load event.

          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