aravazhi k
How to restrict an actionmethod being called from a RedirecttoAction method in MVC?

How to restrict an actionmethod being called from a RedirecttoAction method in MVC?

By aravazhi k in .NET on Oct 30 2020
  • Vivek Sheth
    Nov, 2020 2

    Decorate that action method with [ChildActionOnly] attribute.

    With [ChildActionOnly] attribute annotated, an action method can be called only as a child method from within a view.

    • 3


Most Popular Job Functions


MOST LIKED QUESTIONS