Hi all,
I created a DataList on a WebForm, and I want to have a separate delete
button at the bottom of the page. I can create a event handler for the
delete button and delete the selected item and re-bind the DataList.
That's working fine. But just curious, how can I tie the delete button
to the DeleteCommand of the DataList? I tried setting the delete
button CommandName property to "Delete", but it won't go to the
DataList DeleteCommand event handler. Does that mean to use the
DeleteCommand, it has to be defined within an ItemTemplate?
Thanks,
Harold