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. can anyone help me with folder path file problem>?

can anyone help me with folder path file problem>?

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

    <asp:RoleGroup Roles="Registrator"> <ContentTemplate> <br /> <a href="Registrator/Register_new_bidder.aspx" ><img src="Images/registerbidder.jpg" border="" /></a> <br /> <a href="Registrator/Edit_Bidder.aspx"><img src="Images/assignseat.jpg" border=""/></a> </ContentTemplate> </asp:RoleGroup> the above is my code when the page is first loaded int he default.aspx(root) the images displays just find however when i log in to another user account and tries to navigate around the subfoler folder(/root/registor/abc.aspx) it will display that it cant find the img file error:file not found root/registor/Images/registerbidder (p.s my subfolder also have an web.config of its own) instead of looking for the file inside the root folder's image folder it look for the image folder inside the subfolder y is this so and how can i solve it please help

    N 1 Reply Last reply
    0
    • N neodeaths

      <asp:RoleGroup Roles="Registrator"> <ContentTemplate> <br /> <a href="Registrator/Register_new_bidder.aspx" ><img src="Images/registerbidder.jpg" border="" /></a> <br /> <a href="Registrator/Edit_Bidder.aspx"><img src="Images/assignseat.jpg" border=""/></a> </ContentTemplate> </asp:RoleGroup> the above is my code when the page is first loaded int he default.aspx(root) the images displays just find however when i log in to another user account and tries to navigate around the subfoler folder(/root/registor/abc.aspx) it will display that it cant find the img file error:file not found root/registor/Images/registerbidder (p.s my subfolder also have an web.config of its own) instead of looking for the file inside the root folder's image folder it look for the image folder inside the subfolder y is this so and how can i solve it please help

      N Offline
      N Offline
      nyogeswar
      wrote on last edited by
      #2

      I also faced the same problem but in different scenario. i solved by replacing html img control "" to asp:image server control and gave src path as "~/images/registerbidder.jpg" as in ur case. the "~" will point the root path. Yogesh

      N 1 Reply Last reply
      0
      • N nyogeswar

        I also faced the same problem but in different scenario. i solved by replacing html img control "" to asp:image server control and gave src path as "~/images/registerbidder.jpg" as in ur case. the "~" will point the root path. Yogesh

        N Offline
        N Offline
        neodeaths
        wrote on last edited by
        #3

        the error" Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /hog9/~/Registrator/Register_new_bidder.aspx the code: <a href="~/Registrator/Register_new_bidder.aspx" <>img src="~/Images/registerbidder.jpg" border="" /></a> i tried it still cant could it be because each of my subfolder have an web.config?

        N 1 Reply Last reply
        0
        • N neodeaths

          the error" Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /hog9/~/Registrator/Register_new_bidder.aspx the code: <a href="~/Registrator/Register_new_bidder.aspx" <>img src="~/Images/registerbidder.jpg" border="" /></a> i tried it still cant could it be because each of my subfolder have an web.config?

          N Offline
          N Offline
          nyogeswar
          wrote on last edited by
          #4

          do it in server control Convert as a ---> asp:hyperlink img --> asp:image Yogesh

          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