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
Mark Tabor
590
2k
457.2k
details view mvc
Sep 30 2016 12:48 PM
I have created a details view in mvc
my markup is like that
@Html.ActionLink("ReadMore", "Details", "Service", new { id = item.ID }, null)
controller is like below
public ActionResult Details(int id)
{
slider sd = new slider();
//sd.GetData();
// viewModelVm vm = new viewModelVm();
Service sr = new Service();
sr.Getdatabyid(id);
viewModelVm vm = new viewModelVm();
vm.slider = sd.GetData();
vm.service = sr.Getdatabyid(id);
Service ss = sr.Getdatabyid(id);
return View(vm);
}
but when i open the details view by clicking it it shows some error in console window of browser 404 type of error
http://localhost:60553/Service/Details/css/bootstrap.min.css
1:24 GET http://localhost:60553/Service/Details/css/3-col-portfolio.css
1:25 GET http://localhost:60553/Service/Details/js/jquery.js
1:28 GET http://localhost:60553/Service/Details/js/bootstrap.min.js
1:116 GET http://localhost:60553/Service/Images/img/009-Living_Room-2169443-large-2.png 404 (Not Found)
1:119 GET http://localhost:60553/Service/Images/img/rsz_malibu-2.png 404 (Not Found)
1:122 GET http://localhost:60553/Service/Images/img/Southport%20Beach%20Photo-2.png 404 (Not Found)
1:125 GET http://localhost:60553/Service/Images/img/Third.png 404 (Not Found)
my css folder is in root folder instead of inside service/Details why it is so basically my details view is strongly typed partial view
Reply
Answers (
1
)
close automatically radwindow after logged in
how to convert html template to asp.net with mvc framerwork?