Error executing child request for handler in view

后端 未结 12 920
臣服心动
臣服心动 2020-12-09 02:30

I have an MVC 4 view where I render the following actions

@{
    Html.RenderAction(\"Index\", \"Logo\");
    Html.RenderAction(\"Index\", \"MainMenu\");
}
         


        
12条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 03:15

    I was facing the same issue but I put [HTTPGet] attribute over the function name and it worked for me.

    [HttpGet]
    //for Filter parital view
    [ChildActionOnly]
    public ActionResult Filter()
    { 
      // Your code will come here.
    }
    

提交回复
热议问题