Checkbox values reverting to false on button click

Discussion in 'ASP .Net Datagrid Control' started by David Flynn, Jul 4, 2003.

  1. David Flynn

    David Flynn Guest

    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.

    --
    Dave
     
    David Flynn, Jul 4, 2003
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Purvi T
    Replies:
    0
    Views:
    1,134
    Purvi T
    Oct 19, 2004
  2. Steve
    Replies:
    4
    Views:
    534
    Steve
    Jan 27, 2006
  3. Amy
    Replies:
    0
    Views:
    1,262
  4. Adotek
    Replies:
    1
    Views:
    547
    David Wier
    May 29, 2007
  5. Mufasa
    Replies:
    7
    Views:
    624
    Alexey Smirnov
    Sep 4, 2007
  6. Andrew Jocelyn
    Replies:
    3
    Views:
    6,231
    Steven Cheng [MSFT]
    Apr 14, 2008
  7. Advo
    Replies:
    2
    Views:
    177
  8. Replies:
    2
    Views:
    529
Loading...