Get localhost physical directory?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Get localhost physical directory?

    Hi everyone,
    I would like to get the path of the virtual directory where my page is
    running from. For example if I access a page with
    [url]http://localhost/mySite/default.aspx[/url] I would like to call a function
    in the code of my default.aspx that returns me
    C:\Inetpub\wwwroot\mySite

    Probably there is a trivial solution but I am not figuring it...

    Thank you in advance,

    Elsa
    Elsa Luiz Guest

  2. Similar Questions and Discussions

    1. directory browsing in localhost:8500
      Does anyone know how I can enable directory browsing in localhost:8500? I have it enabled in localhost, but with :8500, if runs index.cfm instead...
    2. moving the physical log
      According to the IDS 9.4 docs, I can move the physical log like this: set IFX=D:\IFMXDATA\ol_bronco copy nul D:\IFMXDATA\ol_bronco\physpace.001...
    3. Physical Logging performance
      Ruediger Yes, this is something I have tried to achieve, it tends to reduce disk I/O to the Physical Log and make the I/O more efficient. I'm...
    4. Something simple!? Sessions - admin.localhost to main.localhost
      Hi Why does the following code allow me to keep the same session when in the same sub domain (ie admin.localhost), yet not when I goto another...
    5. Physical backup/recovery between different platforms?
      Hi there, I am using Oracle V7.3.4.4 on AIX with datafiles on logical volumes, so running what's called "on raw device" (using the rlv's). I...
  3. #2

    Default Re: Get localhost physical directory?


    Hi,
    thank you very much for your help. The property I was looking was

    Request.PhysicalApplicationPath

    Elsa


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Elsa Luiz Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139