<%Html.RenderAction("BrowserVersion", "HomeController"); %>
I got the error below:
The controller for path '/' was not found or does not implement IController.
Code for HomeController:
public class HomeController : Controller
{
[ChildActionOnly]
public ActionResult BrowserName()
{
ViewData["BrowserName"] = Request.Browser.Browser;
return View();
}
}