The postback event for the checkbox control won't fire correctly because it's within a Grid View that mangles the ID of the control.
If you need the Checkbox to reflect data you can use the Check Box Field object and bind that way.
Can't believe this haunted me for hours..sitting here staring blankly into some none functioning ASP. Form["__EVENTTARGET"] and if it ends with the ID of the control, rebind the Grid View and use Page.
NET code..because I had set Enable View State="false" :@ When I bind Grid View in if(! Find Control with the event target to find the control that fired the event I just had a colleague who encountered the same problem; his was caused by the onrowcommand= attribute not being set in the asp: Grid View element. Also make sure that the web.config has debug set to true (think already done). Like I said at the bottom, my button click event works fine, it's just the Check Box inside the Grid View that's giving me problems.
I have tried to not override in control and instead use delegates like I described in ...
I am using a Template Field to display my Edit, Update and Cancel 'buttons' in the first column of the Grid View within respective Item Template and Edit Item Template fields.
Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.
Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free.
This enables you to provide an event-handling method that performs a custom routine, such as canceling the edit operation, whenever this event occurs.
On Row Deleting - can call registered event handlers" I couldnt figure out how to continue this thread, but the issues in it are related so i'm including it as a reference.
In my custom grid View control I cannot raise the Row Updated event.
All was workin fine b4 I added the Update Panel and Content Template.
The Script Manager is in the Master Page Please help me....