InterviewSolution
Saved Bookmarks
| 1. |
How We Can Invoke Child Actions In Mvc? |
|
Answer» “ChildActionOnly” attribute is DECORATED over action methods to indicate that action method is a child action. Below is the CODE snippet USED to denote the child action – [ChildActionOnly] public ACTIONRESULT MENUBAR() { //Logic here return PartialView(); } “ChildActionOnly” attribute is decorated over action methods to indicate that action method is a child action. Below is the code snippet used to denote the child action – [ChildActionOnly] public ActionResult MenuBar() { //Logic here return PartialView(); } |
|