How to change WebGrid action for getting data (.NET MVC3)

后端 未结 4 899
无人及你
无人及你 2021-02-10 00:28

I have a Partial View that renders WebGrid. My controller looks like

public ActionResult Index()
{
    return View();
}
public ActionResult GetUserList(int? pag         


        
4条回答
  •  [愿得一人]
    2021-02-10 00:48

    If you remove [HttpPost] attribute and let the route come to the same function. you'll find the Request["page"] value in your method. this will allow you to put a check on Request["Page"] value.

提交回复
热议问题