Mark Tabor

Mark Tabor

  • 587
  • 2k
  • 460.5k

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  

Answers (1)