oncheckedchanged

Clicking checkbox causes onCheckedChanged to fire twice

I have a GridView with a TemplateField with a checkbox. My goal is to capture the onclick event using autopostback and setting a database flag. My only problem is that the event fire's twice. The first time The Checkbox (In the sender parameter) holds the clicked value so I set it based on the click. The second time the sender parameter ...

onCheckedChanged event of checkbox within a gridview

Hi All, I have a checkbox control in the gridview with Autopost back = true Code: ' runat="server" AutoPostBack="True" OnCheckedChanged="chkJobID_CheckedChanged" /> Now, when i check the checkbox the 'OnCheckedChanged' fires and add the jobID to the array, but when i uncheck the checkbox then it doesnt fires....

OnCheckedChanged event not firing in GridView at all

I have a GridView with an asp CheckBox in a TemplateField. The TemplateField is defined as follows: <asp:TemplateField HeaderText="HeaderName"> <ItemTemplate> <asp:CheckBox ID="checkBoxId" runat="server" OnCheckedChanged="MyCheckChangedMethod" AutoPostBack="true"/> </ItemTemplate> </asp:TemplateField> When I run my web...

How to Catch ASP.Net RadioButton CheckChanged Event in a DataGrid

I have a RadioButton in a TemplateColumn of a DataGrid. Each RadioButton is part of the same group to make sure that only one is selected and they are set to AutoPostBack. What I would like to do is trap the OnCheckedChange event and handle it like a button click within the DataGrid (using the OnItemCommand event handler). Does anyone ...

Checkbox with AutoPostBack and OnCheckedChanged Event Fires Event when Page Loads

I have a checkbox in a repeater and it is bound to a data source where it sets the checkbox to checked or unchecked. The checkbox is set to AutoPostBack and has an OnCheckedChange event. The problem is that the event keeps getting fired when the page loads. I need it to only fire if the user makes a change. How do I do this? pr...

VB - how to link up a Check_change to code behind for a checkbox

How do I enable a check_change for a checkbox in VB. Here is what I have so far. Code Behind: Protected Sub CheckBoxCash_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBoxCash.CheckedChanged Label1.Text = "Cash" End Sub Front end code: <asp:Label ID="Label1" runat="server" Text=...

GridView RadioButton OnCheckedChanged only fires once

Hi, I have a problem with OnCheckedChanged on a RadioButton wicht is located within a GridView like this : <edititemtemplate> <asp:RadioButton id="rdoFoutEdit" runat="server" enabled='<%# Bind("Akkoord_Enabled") %>' Checked='<%# Bind("Akkoord_Fout") %>' GroupName='<%# Bind("ID") %>' OnCheckedChanged="Fout_CheckedChanged" AutoPostBa...

How to distinguish user vs programmatic changes in WinForms CheckBox?

I have logic on a CheckBox's OnCheckedChanged event that fires on form load as well as when user changes check state. I want the logic to only execute upon user action. Is there a slick way of detecting user vs programmatic change that doesn't rely on setting/checking user variables? ...

Several RadioButtons in a group unhandling event

Hi, If you have several radiobuttons in a group, and you have Checked event handlers in your code behind, if a radiobutton is checked how do you cancel this event handling so that the new radiobutton clicked does not get selected and your original checked button stays checked? The code in the event handler in the code behind distinguish...

What row index has a template checkbox in a datagrid?

I have a datagrid and there is a checkbox which is template in each row. Suppose I am in CheckedChanged event of one of the checkboxes. Is there any way I can tell in which row of the datagrid that check box is in? ...