Saved Bookmarks
| 1. |
How We Can Invoke Child Actions In Asp.net 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(); } |
|