|
-
May 24th, 2011, 02:48 AM
#11
Hyperactive Member
Re: Decrement displaying of data
 Originally Posted by azsx123
I do. Thanks so much! =)
Code:
public ViewResult Index()
{
IList<NewsModel> items = (from item in db.BatchNews
orderby item.ID descending
select item).ToList();
return View(db.BatchNews.ToList());
}
return View(items);
Second on what Gary said. Think carefully what information others will need to help you and include that. (That does not mean posting 100's lines of irrelevant code).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|