top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How we can invoke child actions in ASP.Net MVC?

0 votes
216 views
How we can invoke child actions in ASP.Net MVC?
posted Aug 30, 2016 by Sathaybama

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

"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();
}
answer Aug 31, 2016 by Shivaranjini
...