Web Application folder path

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

  1. #1

    Default Web Application folder path

    Anyone know how to get a path to your web application's folder at design
    time? I've tried using MapPathSecure in the OnInit call, but no luck.


    JV Guest

  2. Similar Questions and Discussions

    1. Linking to Network Folder path with javascript
      Hi, I need some help please and hopefully you have the answer. I have a javascript code that involves two drop down menus, when one is chosen...
    2. Determining FTP root folder from path?
      Hi all, I have been working on a GUI web photo album for *nix. I had thought it might be workable for users to open a browser based FTP session...
    3. How to get the application path
      Hello, I have an ASP.NET web application on this place: C:\webapplications\portal\ Inside my C# class I tried to get the application path like...
    4. Application folder not seeing namespace of the main application
      hi I have a website (localhost namespace : "whatever") that has a secure application folder ( called secure with a namespace : "Secure") I...
    5. Folder creation up to an invalid path
      Hi This might be a strange problem...One of my folder has been recreated several times in to depth of its path and now i am unable to delete the...
  3. #2

    Default Re: Web Application folder path

    On Wed, 30 Mar 2005 13:03:25 -0500, JV wrote:
    > Anyone know how to get a path to your web application's folder at design
    > time? I've tried using MapPathSecure in the OnInit call, but no luck.
    there is no good and clean (i mean documented) way to do this, it depends
    on IDE (developing environment) that you use. I tried to solve this problem
    but I am *NOT* happy with the result, you can try my solution because I am
    not sure that will work with new versions of VS.NET IDE, I tested it with
    VS.NET 2003.

    This assembly also suports Borland IDE's and here I AM SURE that this will
    work forever because Borland defined nice and clean interfaces for IDE
    intergration (not just design time)

    Here is how this works, in this PDesignTimeTools.dll there are 2 dll's
    included as resource, one for BDS and one for VS.NET, only purpose of this
    included dll's is to get web app path for selected IDE in design time.
    PDesignTimeTools first detects IDE used and then it extracts proper
    assembly from resource and call code to get web app path for current IDE.

    I used resource dll's because I did not wont to include dependancies on
    both BDS and VS.NET, and any other IDE specific dll that I will include in
    this project.


    here it is :

    [url]http://www.antoniob.com/projects/PDesignTimeTools.aspx[/url]

    free and source included, beware Delphi.NET !




    --
    [url]http://www.antoniob.com/[/url]
    remove antispam XremoveX from e-mail !
    Antonio Bakula 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