Click here to Skip to main content
16,022,368 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 19-Jan-11 22:37pm
v2
Comments
Sunasara Imdadhusen 20-Jan-11 4:36am    
Please send code that you have written!

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
 
Share this answer
 
Comments
TanzeelAhmed 20-Jan-11 4:50am    
i m using stream writer to read from datatable and write on txt file
soni uma 20-Jan-11 5:06am    
Oh, i think you have to post your sample code here, So we can easily identify the issue.
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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900