Solved

Asp.net mvc

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax Error 2 46
Why is some text in blue in Visual Studio? 6 23
IIS issues - Convert to Application - APS.NET v4.0 3 23
Video Player 2017 5 11
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

14 Experts available now in Live!

Get 1:1 Help Now