GoWebsite.com provides Domain Registration
Website Hosting, On-Line Shopping Carts, SEO
Blog Hosting, Email Accounts, Security Certificates,
Merchant Accounts & other Website Products.
Free setup! Speak with us anytime: 480-624-2500

What is the absolute or direct path for my Windows (ASP) hosting account?

Your account's Hosting Control Panel displays your absolute path. For more information, see Finding Your Hosting Account's Absolute Path.

You can also use ASP/ASP.NET to find your absolute path. Within ASP/ASP.NET, the function Server.MapPath returns the full path to your hosting account. If you create a directory called "subdir," you could return the path to "'subdir" using Server.MapPath("subdir").

NOTE: Keep in mind that with ASP hosting, by default an ASP/ASP.NET script does not have write access to the root directory or subdirectories of a hosting account. If you want to specify write access to the root directory or a subdirectory, you must define write access to that directory through the FTP File Manager option in your hosting account settings. You can also use the IIS Settings to set up a "Virtual Root" in IIS by selecting the Set Application Root option.

The following ASP server path example returns the current directory:

<%
Dim currentdirectorypath
currentdirectorypath = Server.MapPath(".")
response.write currentdirectorypath
%>

The data returned depends on the parameter you pass to the function and your directory structure. The following examples return the parent directory path, the application's root directory, and the path to a specific page:

  • Server.MapPath("..")
  • Server.MapPath("/")
  • Server.MapPath("myPage.aspx")
Domain Registration
Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. Everything you need to get online - FREE with your domain.
Website Builder
For as little as $3.89 per month you can build your Website online with Website Builder using our easy to use professional templates.
Play Video - Demo
Quick Shopping Cart
Build and run your own successful online store in minutes. You're just five easy steps away!
Shopping Cart works with Google® and eBay®
Play Video
Website Hosting
Everything needed to give your website the high-performance home it deserves.  Protect transactions and secure your customer's data with
a SSL Certificate