Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Application Path at Design Time

Application Path at Design Time

Scheduled Pinned Locked Moved ASP.NET
visual-studioquestioncsharpdesign
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sivilian
    wrote on last edited by
    #1

    I am building a Design editor for a property in a custom control which uses a FolderDialog. Ideally, the folderdialog should open up on the root folder of the application as its selected path. If I use: AppDomain.CurrentDomain.BaseDirectory it works at run time, but I need it at Design Time where it returns the basedirectory of the Visual Studio IDE. How can I get the application path at design time. Ex. c:\inetpub\wwwroot\applicationname? thanks, sivilian

    M 1 Reply Last reply
    0
    • S sivilian

      I am building a Design editor for a property in a custom control which uses a FolderDialog. Ideally, the folderdialog should open up on the root folder of the application as its selected path. If I use: AppDomain.CurrentDomain.BaseDirectory it works at run time, but I need it at Design Time where it returns the basedirectory of the Visual Studio IDE. How can I get the application path at design time. Ex. c:\inetpub\wwwroot\applicationname? thanks, sivilian

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      Server.MapPath( Request.ApplicationPath);

      Mazy
      "One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji

      S 1 Reply Last reply
      0
      • M Mazdak

        Server.MapPath( Request.ApplicationPath);

        Mazy
        "One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji

        S Offline
        S Offline
        sivilian
        wrote on last edited by
        #3

        This only works at run time. sivilian

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups