Home > Net >  Local page refresh. Netmvc
Local page refresh. Netmvc

Time:09-21

小灰有个Index页面,页面上面是一个table,下面是一个自己写的分页按钮,table是用" @Html.Partial("~/Views/Administrator/Result.cshtml")"引入的子页面,分页控件是用ul li组成的,,我想点一下li就可以跳转到下一页,现在的情况是可以传参到控制器,但是不能跳转到下一页,我是用jqeruy做的,,附上控制器的代码:,"list_NM"就是reuslt页面的table要绑定的数据,再附上result页面的代码:,result页面在控制器里没有对应的方法,

CodePudding user response:

Since you use the ajax, then in success, manual replace HTML content,
Because ajax is asynchronous, also is the equivalent of,
You run the page and asynchronous operation controler, is not a
So cause your ajax triggered the background, but the page hasn't changed,

CodePudding user response:

But now a more suitable scheme,
Is to use vue such as front desk framework to two-way binding,
They are in order to solve this problem,

CodePudding user response:

refer to the second floor hanjun0612 response:
but it is now more appropriate solutions,
Is to use vue such as front desk framework to two-way binding,
They are in order to solve this problem,

If you don't have any other solution for the vue, don't ajax

CodePudding user response:

reference foam reply Lin: 3/f
Quote: refer to the second floor hanjun0612 response:
but it is now more appropriate solutions,
Is to use vue such as front desk framework to two-way binding,
They are in order to solve this problem,

If you don't have any other solution for the vue, don't ajax can do

Simple, use mvcPager plugin page,

CodePudding user response:

Suggest you see mvcPager implementation, then good example don't you go to see?
  • Related