简体   繁体   中英

How to get pageindex of a gridview and add one to it in javascript

My task is to get a gridview's pageIndex and store them in a variable with adding one(1) to it

 var i=gridview.PageIndex +1

Is there any solution?

试试下面的代码

i = parseInt("<%=gridView.PageIndex %>")+1;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM