TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
padmapriya patruni
NA
74
117.9k
Getting file from folder in mvc 4
Dec 24 2015 2:24 AM
hi all,
i am getting problem while showing the image in View page.
i inserted successfully in Path.Combine(@"C:\inetpub\RMS\FileStructure\Employee\" + "Photos");
after that i need to display the image . i wrote code in controller
i.e. objEmployeeInfo.ImagePath = Path.Combine(@"C:\inetpub\RMS\FileStructure\Employee\" + employeDetails.Image);
in view : <img src='@Model.ImagePath' />
this model.imagepath is getting proper image path.
but it is showing error like : Not allowed to load local resource: file:///C:/inetpub/RMS/FileStructure/Employee/Photos/201512241206078792_4.jpg
plz help me. what i need to do?
Reply
Answers (
4
)
How to create SAAS application using ASP .NET MVC?
asp.net textbox text binding in excel