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

后端 未结 4 667
余生分开走
余生分开走 2021-02-10 00:26

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:58

    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.

提交回复
热议问题