如何在更新面板中使用Gridview [英] How To Use Gridview in update panel

查看:80
本文介绍了如何在更新面板中使用Gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部



这里我在asp.net中有一些Grid的问题,我在updatepanel里面使用gridview和复选框,当我有很多在最后一个复选框中单击的日期它将被检查但是它将在网格顶部如何避免它...



Ex:



我在gridview中有十个复选框,当我点击它选中的第10个复选框但它已经到了网格顶部....



谢谢...

Hi, All

Here i have some problem with Grid in asp.net, i'm using gridview inside of updatepanel with check box when i have lot of date to clicked in last checkbox it will checked but it going to top of the grid how to avoid it...

Ex:

i'm having ten check box in gridview when i click 10th checkbox it checked but it gone to top of the grid....

Thanks...

推荐答案

您在更新面板中使用了网格,复选框的autopostback属性为true,因此每次单击复选框时,完成gridview将是回发到服务器。



以避免回发将复选框的autopostback属性设置为false并使用ajax来完成复选框的操作。
you have used grid inside update panel and autopostback property of checkbox is true so every time when you are clicking checkbox then complete gridview will be postback to server.

to avoid postback set the autopostback property of check box to false and use ajax to complete action of checkbox.


这篇关于如何在更新面板中使用Gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆