mvc partial view with controller code example
Example 1: asp net core mvc partial view
<partial name="_PartialName" />
Example 2: dynamically load partial view mvc
// partial view controller
public IViewResult LoadPartial() {
return PartialView("_login"); // name of the partial view
}
// view (with jquery)
$("#container").load("LoadPartial");