Results 1 to 2 of 2

Thread: Server.MapPath

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Posts
    254

    Server.MapPath

    When I access data from the root folder it is ok like
    Server.MapPath ("ABC.mdb")
    Please anyone tell me that how can I access the same file from the Subfolder. I have another application running in the subfolder but I want to access database on the root.

    Thanks in advance
    Ideas are dime a dozen.
    People who put them into action are priceless.

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251

    Re: Server.MapPath

    If you server supports it you could do ../ notation. each ../ constitutes a folder level

    Server.Mappath("../ABC.mdb") - 1 subfolder level
    Server.Mappath("../../ABC.mdb") - 2 subfolder levels
    ~Ryan





    Have I helped you? Please Rate my posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width