Solved

Asp.net mvc

Posted on 2016-09-16
2
41 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

17 Experts available now in Live!

Get 1:1 Help Now