I am doing a project and got confution in an area that how can I retrieve data from table to a perticular area. The main problem is that there is a javascript part to move the data to left continuously like horizontal scroll. Initially three division is seen and this is repeating from right to left . Now here what I need is I want to give the data for each division from db. Each division has different content.I have given the code but it works the code for only one division. How can I seperate the code for each division
var result = db.news.tolist();
return View(result);
view
@for (var j = 0; j < Model.NewsPage.Count(); j++)
{
@Html.DisplayFor(m => m.NewsPage[j].Title)
}
how can I correct my code to get the data for each seperate division ??
can anyone please help me to find a solution for this ??