Checkbox values reverting to false on button click

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default Checkbox values reverting to false on button click

    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 Guest

  2. Similar Questions and Discussions

    1. how to use click event on a checkbox in cfgrid
      I am using checkboxes in a cfgrid by putting type="boolean" in my cfgridcolumn tag The problem is, I need a click event to be fired when any of the...
    2. WWW::Mechanize click($button) not finding right button to click
      Based on wise advice from participants of this forum, I rewrote my web automation script using WWW::Mechanize. The script now successfully logs...
    3. Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl.
      Hello I have the following situation: (everything is dynamic (controls.add)) 1. Button.Init { WasButtonClickFired = true } 2....
    4. Capture CheckBox Click Event
      I have a datagrid with a checkbox column. The column is bound to adatabase, and I have no problem capturing a click event on the checkbox using the...
    5. How Do I : Add a Click event to a checkbox in a DataGrid
      Hello, I need to know when a user clicks a checkbox, in a datagrid, so I can then update the database. I.E. I need to know which row has been...
  3. #2

    Default Any answers to this problem?

    I'm having the same problem. Any luck figuring this out?

    thanks!
    squeeb Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139