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
athira k
NA
140
53.8k
how to get data from db to horizontal scroll mvc
May 18 2017 6:35 AM
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)
}
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 ??
Reply
Answers (
2
)
What continious integration does
Programitically create connection string web config file