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. Cannot use a leading .. to exit above the top directory

Cannot use a leading .. to exit above the top directory

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 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.
  • P Offline
    P Offline
    PleaseHelpCP
    wrote on last edited by
    #1

    I have a master page. In .aspx page i have set MasterPageFile value to the master page. In .aspx page i am loading a control(.ascx). While doing this i am getting error Cannot use a leading .. to exit above the top directory. I have tried changing paths also(../), but its not working. Can anyone help me?

    A 1 Reply Last reply
    0
    • P PleaseHelpCP

      I have a master page. In .aspx page i have set MasterPageFile value to the master page. In .aspx page i am loading a control(.ascx). While doing this i am getting error Cannot use a leading .. to exit above the top directory. I have tried changing paths also(../), but its not working. Can anyone help me?

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Have a look

      cheers, Abhijit CodeProject MVP

      P 1 Reply Last reply
      0
      • A Abhijit Jana

        Have a look

        cheers, Abhijit CodeProject MVP

        P Offline
        P Offline
        PleaseHelpCP
        wrote on last edited by
        #3

        thanks for quick reply. i have tried this solution also, but still giving the same error

        A 1 Reply Last reply
        0
        • P PleaseHelpCP

          thanks for quick reply. i have tried this solution also, but still giving the same error

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          can you give us the quick overview of folder hierarchy of you application ?

          cheers, Abhijit CodeProject MVP

          P 1 Reply Last reply
          0
          • A Abhijit Jana

            can you give us the quick overview of folder hierarchy of you application ?

            cheers, Abhijit CodeProject MVP

            P Offline
            P Offline
            PleaseHelpCP
            wrote on last edited by
            #5

            Master page is in root directory. .aspx page is in folder "A" which is in root. In .aspx page i am loading control(.ascx) which is in folder "B", which is again in root. I am using stylesheet which is also created in root. To load control, i have written following lines: UC=(UserControl)Pa ge.LoadControl("../Try/TestPage.ascx");

            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