Solved

Asp.net mvc

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

Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

632 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