Answers for "dynamically load partial view mvc"

C#
1

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");
Posted by: Guest on May-20-2020

C# Answers by Framework

Browse Popular Code Answers by Language