Delete confirmation in User Control Data Grid
-
Hi, I am using a user control where i have a data grid control. I use this user control in a page. My problem is, I have a link button for delete and when i click this button I get the confirmation message but when I click ok the record is not deleted..(The Item_Command event is not geting fired) in the item_databount property I am adding the onClick attribute for the link button, and calling a javascript to give the confirmation message and in the item_command event i am writing the logic for delete. Same code is working fine for a datagrid control but itz not working when I make this datagrid as a usercontrol and draging it in a page.. Is there any property to be set for the user control Please help...
Regards, Sivaprasad
-
Hi, I am using a user control where i have a data grid control. I use this user control in a page. My problem is, I have a link button for delete and when i click this button I get the confirmation message but when I click ok the record is not deleted..(The Item_Command event is not geting fired) in the item_databount property I am adding the onClick attribute for the link button, and calling a javascript to give the confirmation message and in the item_command event i am writing the logic for delete. Same code is working fine for a datagrid control but itz not working when I make this datagrid as a usercontrol and draging it in a page.. Is there any property to be set for the user control Please help...
Regards, Sivaprasad
are you deleting from your database table? are you reloading the grid after each delete? There is an example at: http://www.programmingknowledge.com/simpleDataGrid.aspx[^] =postmaster