Questions tagged [child-actions]
33 questions
0
votes
1 answer
access child action parameter in its view
public class AController : Controller
{
public ActionResult Index()
{
return View();
}
}
and Index view goes like
...
@Html.Action("Index", "BController", new { HasEditPermission = true })
...
BControler goes like
public class…

techBeginner
- 3,792
- 11
- 43
- 59
0
votes
0 answers
The controller for path '/' was not found... error in Html.Action
My application (ASP.NET MVC 4) was working until a few hours ago and just recently I got this error:
The controller for path '/' was not found or does not implement IController
I test parts of application and find that it will be happend when I…

amiry jd
- 27,021
- 30
- 116
- 215
0
votes
1 answer
Want to display a message in layout coming from child action?
I want to display a message in layout coming from child action ? How can i do that ?
Like in my layout i have a login form (rendered as a child action).. so when the login fail i would like to show a message in the layout in a specific DIV. The…

Rushino
- 9,415
- 16
- 53
- 93