Solved & access denied on Images folder

Posted on 2011-10-18
Last Modified: 2013-11-26
Hello folks,

   Below is a snippet of coding that I have and I am having a problem with it reading the images in the images directory.
It will show mw the path correctly but when I display them, it doesn;t show the image only the old familar red X.
When I display the path with a response.write,this is what I have:

 which is correct but when I try t pop-up in a window using javascript,  it tells me "access denied"

I think this is the problem....
any help appericated....

Question by:Overthere
    LVL 27

    Accepted Solution

    From what I can see, you need to provide the relative path from your website and not the absolute path on your hard disk. So it'll be something like:

    <img src="~/images/siteaa.jpg" />

    LVL 7

    Expert Comment


    yes, if your image is in your project folder use relative path..

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
    Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now