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
rizwana ahmed
NA
56
1.7k
how to use @html.renderpartial() and return of controller ac
Aug 17 2016 4:34 AM
plz show codes..not running...
@{Html.RenderAction("Archieves", "UserBlog");}
public ActionResult Archieves()
{
try
{
var model = new BlogModel();
var blogRecentList = _apiBlog.GetAllBlogArchieves().ToList();
model.BlogList = blogRecentList.Select(item =>
{
return new BlogModel()
{
Month = item.MonthYear,
};
}).ToList();
model.ArchievesBlogList = model.BlogList.OrderByDescending(x => x.ID).ToList();
return PartialView("_BlogArchieve", model);
}
catch (Exception ex)
{
throw ex;
}
}
Reply
Answers (
2
)
Events in Asp.net
MVC Cascading dropdownlist