Solved

Asp.net mvc

Posted on 2016-09-16
2
57 Views
Last Modified: 2016-09-17
Hi Guys,

I have asp.net mvc application and I'm trying to let my users access to files which located in the network.
The files are pictures which should show on the web pages.
Let's give example:

I have created virtual directory in my IIS server and name it "pics":

Capture.JPG
Now in my view I'm trying to access to my files in this way(see below):
I have provided the right path in my virtual directory and still it doesn't show the pic.

<div class="form-group">
    <img src="~/pics/Test/tesgimage.png"/>
</div>

Open in new window



Please, help.
0
Comment
Question by:Moti Mashiah
2 Comments
 
LVL 21

Accepted Solution

by:
Tapan Pattanaik earned 500 total points
ID: 41802638
HI Moti Mashiah,

I think your path is not correct.

Please check the below path. It should be

<img src="~/pics/tesgimage.png"/>

Regards,
Tapan Pattanaik
0
 
LVL 1

Author Closing Comment

by:Moti Mashiah
ID: 41803018
OMG.... This is what happening when I'm programming tired in the middle of the night.

LOL..

Thank you.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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