get value from another file

Results 1 to 4 of 4

Thread: get value from another file

  1. #1
    Corin Guest

    Default get value from another file

    I do direct Db connections in a web site. Thus avertime i move from the development to the production server I have to change the path on several pages. <BR><BR>What I would like to do is have all my ASP pages retrieve the path from one location so when I move the site to the production server I only have to alter the path once.

  2. #2
    Join Date
    Dec 1969

    Default RE: get value from another file

    Just use an include file, say we call it data.asp, which would contain your connection info and then in every page, just use:<BR><BR>&#060;!-- #INCLUDE FILE = "data.asp" --&#062;<BR><BR>I hope that helps!!<BR>steve<BR><BR>

  3. #3
    Corin Guest

    Default Error

    I get this error and I am not sure why? Anything you can do to help is greatly appreciated.<BR><BR>Session("DatabasePath") = "c:/InetPub/wwwroot/ieg/fpdb/ieg.mdb" <BR>Microsoft OLE DB Provider for ODBC Drivers error &#039 80040e4e&#039 <BR><BR>Operation Canceled <BR><BR>/ieg/store/store1.asp, line 35 <BR>

  4. #4
    Corin Guest

    Default It works now, unlike the thing between my ears som

    I&#039m an idiot, i forgot to put the &#060;% %&#062; in my data.asp page. It works now thanks for the help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts