Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

controller

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)
}



There is a readmore button in each division and on clicking in that it must go to the inner page having the same id. How can I correct my problem to work properly ?
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 ??

What I have tried:

I have tried but didn't get the correct solution which I need . Can anyone please help me to fing solution ??
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900