Checkbox values reverting to false on button click

D

David Flynn

Hi,

I have a datagrid with a checkbox template column. I am using client
side javascript to update a textbox with the a value for the same row
in the datagrid. I have an asp imagebutton that when clicked, iterates
through each item in the datagrid checks the value of the checkbox and
performs an action based on the value of the checkbox.

My problem is that for some reason, when I click the button, the value
of each checkbox is false, even though I have checked them.

Is there some event or something that is being fired that refreshes
the state of my datagrid. I have written a procedure to save the
values of the checkboxes to the viewstate but not sure which datagrid
event to assign it to.

Any help will be greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top