Solved

Asp.net mvc

Posted on 2016-09-16
2
62 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

710 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