So many times , developer face the issues ,
how to replace asp.net User Control , with MVC , So simples solution use Partial
View.
Step 1: Make Action inside of Controller
Example
[ChildActionOnly]
public ActionResult CourseCategory()
{
var genres = db.CourseCategorys.ToList();
return PartialView(genres);
}
Step 2: Partial View Source code
@model IEnumerable<MVC4EF5_DEMO.Models.CourseCategory>
Gowtham RajamanickamPosted Jul 9, 2015, 12:30 AM
good