Gridview未刷新 [英] Gridview not Being Refreshed

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

问题描述

我有一个带复选框的gridview.当用户单击复选框并简单按下按钮时,我正在做的就是在按钮上单击鼠标后在网格视图之外生成一个.txt文件,一旦生成该文件,我希望禁用该复选框,但DataBind()不会刷新网格视图

I have a gridview with a check box. when user click on check box and simple press the button what I am doing is generating a .txt file on a button click outside the gridview once the file is generated I want the checkbox to be disabled but DataBind() is not refreshing the gridview

推荐答案



您是生成txt文件还是下载该文件.因为下载后响应被终止,所以下载后代码无法正常工作.


问候,
umesh
Hi,

Are you just generating txt file or download that file. Because after download response is killed so code is not working after download.


Regard,
umesh


按照以下文章中的说明使用FindControl来访问GridView中的CheckBox.然后,您可以访问CheckBox&的任何属性.采取适当的行动.

http://programming.top54u.com/post/ASP-Net- C-sharp-GridView-FindControl-Checkbox.aspx [ ^ ]
Use FindControl as explained in below article to get access to CheckBox in GridView.Then you can access any property of CheckBox & do appropriate action.

http://programming.top54u.com/post/ASP-Net-C-sharp-GridView-FindControl-Checkbox.aspx[^]


这篇关于Gridview未刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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